Skip to content

Commit 0c63441

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 f5fb197 commit 0c63441

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
@@ -849,7 +849,7 @@ cmd_summary() {
849849
test $status != A && test $ignore_config = all && continue
850850
fi
851851
# Also show added or modified modules which are checked out
852-
GIT_DIR="$sm_path/.git" git-rev-parse --git-dir >/dev/null 2>&1 &&
852+
GIT_DIR="$sm_path/.git" git rev-parse --git-dir >/dev/null 2>&1 &&
853853
printf '%s\n' "$sm_path"
854854
done
855855
)
@@ -883,11 +883,11 @@ cmd_summary() {
883883
missing_dst=
884884

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

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

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

0 commit comments

Comments
 (0)