Skip to content

Commit 752db42

Browse files
j6tgitster
authored andcommitted
git-remote-testgit: avoid process substitution
The implementation of bash on Windows does not offer process substitution. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1afe6e4 commit 752db42

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

git-remote-testgit

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,18 @@ do
8686
exit 1
8787
fi
8888

89-
before=$(git for-each-ref --format='%(refname) %(objectname)')
89+
before=$(git for-each-ref --format=' %(refname) %(objectname) ')
9090

9191
git fast-import "${testgitmarks_args[@]}" --quiet
9292

93-
after=$(git for-each-ref --format='%(refname) %(objectname)')
94-
9593
# figure out which refs were updated
96-
join -e 0 -o '0 1.2 2.2' -a 2 <(echo "$before") <(echo "$after") |
97-
while read ref a b
94+
git for-each-ref --format='%(refname) %(objectname)' |
95+
while read ref a
9896
do
99-
test $a == $b && continue
97+
case "$before" in
98+
*" $ref $a "*)
99+
continue ;; # unchanged
100+
esac
100101
echo "ok $ref"
101102
done
102103

0 commit comments

Comments
 (0)