Skip to content

Commit 8f46a14

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 6173215 commit 8f46a14

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
@@ -860,7 +860,7 @@ cmd_summary() {
860860
test $status != A && test $ignore_config = all && continue
861861
fi
862862
# Also show added or modified modules which are checked out
863-
GIT_DIR="$sm_path/.git" git-rev-parse --git-dir >/dev/null 2>&1 &&
863+
GIT_DIR="$sm_path/.git" git rev-parse --git-dir >/dev/null 2>&1 &&
864864
printf '%s\n' "$sm_path"
865865
done
866866
)
@@ -894,11 +894,11 @@ cmd_summary() {
894894
missing_dst=
895895

896896
test $mod_src = 160000 &&
897-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_src^0 >/dev/null &&
897+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_src^0 >/dev/null &&
898898
missing_src=t
899899

900900
test $mod_dst = 160000 &&
901-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_dst^0 >/dev/null &&
901+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_dst^0 >/dev/null &&
902902
missing_dst=t
903903

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

0 commit comments

Comments
 (0)