t5550: do not assume the "matching" push is the default
[gitweb.git] / t / t1503-rev-parse-verify.sh
index 61092f70f1c4d7c917b1fa235cf38dca597ac88c..813cc1b3e29ec840deb63ad9c3c1dffd2187cdc5 100755 (executable)
@@ -106,13 +106,13 @@ test_expect_success 'use --default' '
 
 test_expect_success 'master@{n} for various n' '
        N=$(git reflog | wc -l) &&
-       Nm1=$((N-1)) &&
-       Np1=$((N+1)) &&
+       Nm1=$(($N-1)) &&
+       Np1=$(($N+1)) &&
        git rev-parse --verify master@{0} &&
        git rev-parse --verify master@{1} &&
        git rev-parse --verify master@{$Nm1} &&
-       test_must_fail "git rev-parse --verify master@{$N}" &&
-       test_must_fail "git rev-parse --verify master@{$Np1}"
+       test_must_fail git rev-parse --verify master@{$N} &&
+       test_must_fail git rev-parse --verify master@{$Np1}
 '
 
 test_done