tests: push: trivial cleanup

No need to do two checkouts. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Nov 25, 2020 at 18:16 UTC e7f80eafd1be8c6771ef3e1e389853e18ed7e90b
1 file changed +1 -2
t/t5516-fetch-push.sh
+1 -2
@@ -457,8 +457,7 @@ test_expect_success 'push with HEAD nonexisting at remote' '
457 test_expect_success 'push with +HEAD' '
458
459 mk_test testrepo heads/master &&
460 - git checkout master &&
461 - git checkout -b local &&
460 + git checkout -b local master &&
461 test_when_finished "git checkout master; git branch -D local" &&
462 git push testrepo master local &&
463 check_push_result testrepo $the_commit heads/master &&