Skip to content

Commit

Permalink
submodule::module_clone(): silence die() message from module_name()
Browse files Browse the repository at this point in the history
The die() message that may occur in module_name() is not really relevant
to the user when called from module_clone(); the latter handles the
"failure" (no submodule mapping) anyway.

Analysis of other callsites is left to future work.

Acked-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed Oct 21, 2011
1 parent 1e42258 commit 9e76d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module_clone()
reference="$3"
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 9e76d4a

Please sign in to comment.