Skip to content

Commit bc5c18a

Browse files
dschoGit for Windows Build Agent
authored andcommitted
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 8530f3e commit bc5c18a

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

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

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

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

0 commit comments

Comments
 (0)