Skip to content

Commit 586b45b

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 717032c commit 586b45b

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
@@ -843,7 +843,7 @@ cmd_summary() {
843843
test $status != A && test $ignore_config = all && continue
844844
fi
845845
# Also show added or modified modules which are checked out
846-
GIT_DIR="$sm_path/.git" git-rev-parse --git-dir >/dev/null 2>&1 &&
846+
GIT_DIR="$sm_path/.git" git rev-parse --git-dir >/dev/null 2>&1 &&
847847
printf '%s\n' "$sm_path"
848848
done
849849
)
@@ -877,11 +877,11 @@ cmd_summary() {
877877
missing_dst=
878878

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

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

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

0 commit comments

Comments
 (0)