Skip to content

Commit 567ce80

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 8fb9f72 commit 567ce80

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
@@ -840,7 +840,7 @@ cmd_summary() {
840840
test $status != A && test $ignore_config = all && continue
841841
fi
842842
# Also show added or modified modules which are checked out
843-
GIT_DIR="$sm_path/.git" git-rev-parse --git-dir >/dev/null 2>&1 &&
843+
GIT_DIR="$sm_path/.git" git rev-parse --git-dir >/dev/null 2>&1 &&
844844
printf '%s\n' "$sm_path"
845845
done
846846
)
@@ -874,11 +874,11 @@ cmd_summary() {
874874
missing_dst=
875875

876876
test $mod_src = 160000 &&
877-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_src^0 >/dev/null &&
877+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_src^0 >/dev/null &&
878878
missing_src=t
879879

880880
test $mod_dst = 160000 &&
881-
! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_dst^0 >/dev/null &&
881+
! GIT_DIR="$name/.git" git rev-parse -q --verify $sha1_dst^0 >/dev/null &&
882882
missing_dst=t
883883

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

0 commit comments

Comments
 (0)