diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2011-10-21 21:49:36 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-21 10:02:02 -0700 |
commit | 9e76d4a8345b247395b902307407ba4eac737524 (patch) | |
tree | e410de6d7f1bcc5cbb139d911189dec082643e63 /git-submodule.sh | |
parent | 1e42258acd3787f7a817f4265da03c709d2e2aa1 (diff) | |
download | git-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-x | git-submodule.sh | 2 |
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) |