Skip to content

Commit 01c4614

Browse files
committed
submodule: avoid dashed invocation
In the years-old effort to clean up the PATH a bit, we deprecated dashed invocations. But we did not hold ourselves to that. Until now. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ad7092c commit 01c4614

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-submodule.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ cmd_summary() {
846846
test $status != A && test $ignore_config = all && continue
847847
fi
848848
# Also show added or modified modules which are checked out
849-
GIT_DIR="$sm_path/.git" git-rev-parse --git-dir >/dev/null 2>&1 &&
849+
GIT_DIR="$sm_path/.git" git rev-parse --git-dir >/dev/null 2>&1 &&
850850
printf '%s\n' "$sm_path"
851851
done
852852
)
@@ -880,11 +880,11 @@ cmd_summary() {
880880
missing_dst=
881881

882882
test $mod_src = 160000 &&
883-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_src^0 >/dev/null &&
883+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_src^0 >/dev/null &&
884884
missing_src=t
885885

886886
test $mod_dst = 160000 &&
887-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_dst^0 >/dev/null &&
887+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_dst^0 >/dev/null &&
888888
missing_dst=t
889889

890890
display_name=$(git submodule--helper relative-path "$name" "$wt_prefix")

0 commit comments

Comments
 (0)