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>

Tay Ray Chuan committed Oct 21, 2011 at 21:49 UTC 9e76d4a8345b247395b902307407ba4eac737524
1 file changed +1 -1
git-submodule.sh
+1 -1
@@ -124,7 +124,7 @@ module_clone()
124 reference="$3"
125 gitdir=
126 gitdir_base=
127 - name=$(module_name "$path")
127 + name=$(module_name "$path" 2>/dev/null)
128 base_path=$(dirname "$path")
129
130 gitdir=$(git rev-parse --git-dir)