summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2011-10-21 21:49:36 +0800
committerJunio C Hamano <gitster@pobox.com>2011-10-21 10:02:02 -0700
commit9e76d4a8345b247395b902307407ba4eac737524 (patch)
treee410de6d7f1bcc5cbb139d911189dec082643e63 /git-submodule.sh
parent1e42258acd3787f7a817f4265da03c709d2e2aa1 (diff)
downloadgit-9e76d4a8345b247395b902307407ba4eac737524.tar.gz
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)