Browse Source

submodule::module_clone(): silence die() message from module_name()

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>
maint
Tay Ray Chuan 14 years ago committed by Junio C Hamano
parent
commit
9e76d4a834
  1. 2
      git-submodule.sh

2
git-submodule.sh

@ -124,7 +124,7 @@ module_clone()
reference="$3" reference="$3"
gitdir= gitdir=
gitdir_base= gitdir_base=
name=$(module_name "$path") name=$(module_name "$path" 2>/dev/null)
base_path=$(dirname "$path") base_path=$(dirname "$path")


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

Loading…
Cancel
Save