summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorLibravatar Tay Ray Chuan <rctay89@gmail.com>2011-10-21 21:49:36 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-10-21 10:02:02 -0700
commit9e76d4a8345b247395b902307407ba4eac737524 (patch)
treee410de6d7f1bcc5cbb139d911189dec082643e63 /git-submodule.sh
parentsubmodule: whitespace fix (diff)
downloadtgif-9e76d4a8345b247395b902307407ba4eac737524.tar.xz
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>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 8e9e5eaaf8..5d29f82149 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)