test: main: fix check_push() bug

We were not checking the kind correctly. Add a new case switch to avoid
these issues.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2019-06-18 18:18:00 -05:00
parent a030d603ac
commit 4d01165b1b

View File

@@ -90,6 +90,9 @@ check_push () {
'')
grep "^ [a-f0-9]*\.\.[a-f0-9]* *${branch} -> ${branch}$" error || ref_ret=1
;;
*)
echo "BUG: wrong kind '$kind'" && return 3
;;
esac
test $ref_ret -ne 0 && echo "match for '$branch' failed" && return 2
done
@@ -675,7 +678,7 @@ test_expect_success 'remote big push fetch first' '
master
good_bmark
bad_bmark:fetch-first
branches/bad_branch:festch-first
branches/bad_branch:fetch-first
EOF
git fetch &&