From 9e76d4a8345b247395b902307407ba4eac737524 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Fri, 21 Oct 2011 21:49:36 +0800 Subject: 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 Signed-off-by: Tay Ray Chuan Signed-off-by: Junio C Hamano --- git-submodule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-submodule.sh') diff --git a/git-submodule.sh b/git-submodule.sh index 8e9e5eaaf..5d29f8214 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -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) -- cgit v1.2.1