Skip to content

Commit

Permalink
Merge branch 'tc/submodule-clone-name-detection'
Browse files Browse the repository at this point in the history
* tc/submodule-clone-name-detection:
  submodule::module_clone(): silence die() message from module_name()
  submodule: whitespace fix
  • Loading branch information
Junio C Hamano committed Oct 26, 2011
2 parents 208a1cc + 9e76d4a commit 0b26d1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ module_name()
re=$(printf '%s\n' "$1" | sed -e 's/[].[^$\\*]/\\&/g')
name=$( git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
sed -n -e 's|^submodule\.\(.*\)\.path '"$re"'$|\1|p' )
test -z "$name" &&
die "$(eval_gettext "No submodule mapping found in .gitmodules for path '\$path'")"
echo "$name"
test -z "$name" &&
die "$(eval_gettext "No submodule mapping found in .gitmodules for path '\$path'")"
echo "$name"
}

#
Expand All @@ -130,7 +130,7 @@ module_clone()

gitdir=
gitdir_base=
name=$(module_name "$path")
name=$(module_name "$path" 2>/dev/null)
base_path=$(dirname "$path")

gitdir=$(git rev-parse --git-dir)
Expand Down

0 comments on commit 0b26d1e

Please sign in to comment.