From: Johannes Sixt Date: Sat, 27 Apr 2013 19:13:13 +0000 (+0200) Subject: git-remote-testgit: avoid process substitution X-Git-Tag: v1.8.4-rc0~256^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/752db4254c940bb6ceeb96a265b50830b4cb10b3?ds=sidebyside git-remote-testgit: avoid process substitution The implementation of bash on Windows does not offer process substitution. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/git-remote-testgit b/git-remote-testgit index 5fd09f965a..643e4aeb19 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