From 4d01165b1bfabfde97349e44ee251b59c0178e8a Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 18 Jun 2019 18:18:00 -0500 Subject: [PATCH] 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 --- test/main.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/main.t b/test/main.t index 5574771..5464f4c 100755 --- a/test/main.t +++ b/test/main.t @@ -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 &&