summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e42258)
raw | patch | inline | side by side (parent: 1e42258)
author | Tay Ray Chuan <rctay89@gmail.com> | |
Fri, 21 Oct 2011 13:49:36 +0000 (21:49 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 21 Oct 2011 17:02:02 +0000 (10:02 -0700) |
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>
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>
git-submodule.sh | patch | blob | history |
diff --git a/git-submodule.sh b/git-submodule.sh
index 8e9e5eaaf8730cb15ba69e7606976ba2eb4e9cf6..5d29f8214950e2aa0f8cf8667302945079d9342a 100755 (executable)
--- a/git-submodule.sh
+++ b/git-submodule.sh
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)