aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2013-04-27 21:13:13 +0200
committerJunio C Hamano <gitster@pobox.com>2013-04-27 13:52:03 -0700
commit752db4254c940bb6ceeb96a265b50830b4cb10b3 (patch)
tree7d142555b62c97ff26edc722d337997c46a09013
parent1afe6e404453586a1095ce0f3f7e899e62ab237f (diff)
downloadgit-752db4254c940bb6ceeb96a265b50830b4cb10b3.tar.gz
git-752db4254c940bb6ceeb96a265b50830b4cb10b3.tar.xz
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>
-rwxr-xr-xgit-remote-testgit13
1 files changed, 7 insertions, 6 deletions
diff --git a/git-remote-testgit b/git-remote-testgit
index 5fd09f965..643e4aeb1 100755
--- a/git-remote-testgit
+++ b/git-remote-testgit
@@ -86,17 +86,18 @@ do
exit 1
fi
- before=$(git for-each-ref --format='%(refname) %(objectname)')
+ before=$(git for-each-ref --format=' %(refname) %(objectname) ')
git fast-import "${testgitmarks_args[@]}" --quiet
- after=$(git for-each-ref --format='%(refname) %(objectname)')
-
# figure out which refs were updated
- join -e 0 -o '0 1.2 2.2' -a 2 <(echo "$before") <(echo "$after") |
- while read ref a b
+ git for-each-ref --format='%(refname) %(objectname)' |
+ while read ref a
do
- test $a == $b && continue
+ case "$before" in
+ *" $ref $a "*)
+ continue ;; # unchanged
+ esac
echo "ok $ref"
done