remote-hg: use notes to keep track of Hg revisions
[gitweb.git] / contrib / remote-helpers / test-hg.sh
index 94b0bba82579883a89de24aa25e78ef5be1f0bf7..5a6f7451babe71871a8363bb3b21dc1d5b690825 100755 (executable)
@@ -75,10 +75,10 @@ check_push () {
                        grep "^   [a-f0-9]*\.\.[a-f0-9]* *${branch} -> ${branch}$" error || ref_ret=1
                        ;;
                esac
-               let 'ref_ret' && echo "match for '$branch' failed" && break
+               test $ref_ret -ne 0 && echo "match for '$branch' failed" && break
        done
 
-       if let 'expected_ret != ret || ref_ret'
+       if test $expected_ret -ne $ret -o $ref_ret -ne 0
        then
                return 1
        fi