git-remote-testgit: avoid process substitution

The implementation of bash on Windows does not offer process substitution. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed Apr 27, 2013 at 21:13 UTC 752db4254c940bb6ceeb96a265b50830b4cb10b3
1 file changed +7 -6
git-remote-testgit
+7 -6
@@ -86,17 +86,18 @@ do
86 exit 1
87 fi
88
89 - before=$(git for-each-ref --format='%(refname) %(objectname)')
89 + before=$(git for-each-ref --format=' %(refname) %(objectname) ')
90
91 git fast-import "${testgitmarks_args[@]}" --quiet
92
93 - after=$(git for-each-ref --format='%(refname) %(objectname)')
94 -
93 # 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
96 do
99 - test $a == $b && continue
97 + case "$before" in
98 + *" $ref $a "*)
99 + continue ;; # unchanged
100 + esac
101 echo "ok $ref"
102 done
103