Skip to content

Commit 9e76d4a

Browse files
rctaygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Tay Ray Chuan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1e42258 commit 9e76d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ module_clone()
124124
reference="$3"
125125
gitdir=
126126
gitdir_base=
127-
name=$(module_name "$path")
127+
name=$(module_name "$path" 2>/dev/null)
128128
base_path=$(dirname "$path")
129129

130130
gitdir=$(git rev-parse --git-dir)

0 commit comments

Comments
 (0)