From: Felipe Contreras Date: Thu, 26 Nov 2020 00:16:15 +0000 (-0600) Subject: tests: push: trivial cleanup X-Git-Tag: v2.30.0-rc0~8^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7f80eafd1be8c6771ef3e1e389853e18ed7e90b;p=thirdparty%2Fgit.git tests: push: trivial cleanup No need to do two checkouts. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index 4077471937..245eafb170 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -457,8 +457,7 @@ test_expect_success 'push with HEAD nonexisting at remote' ' test_expect_success 'push with +HEAD' ' mk_test testrepo heads/master && - git checkout master && - git checkout -b local && + git checkout -b local master && test_when_finished "git checkout master; git branch -D local" && git push testrepo master local && check_push_result testrepo $the_commit heads/master &&