summaryrefslogtreecommitdiff
path: root/t/t5516-fetch-push.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2020-11-25 18:16:15 -0600
committerJunio C Hamano <gitster@pobox.com>2020-11-30 13:57:54 -0800
commite7f80eafd1be8c6771ef3e1e389853e18ed7e90b (patch)
treeea39a48173b211e72139e7fac76ec8d2f35f9340 /t/t5516-fetch-push.sh
parent12a30a3ea65f1d27698927c5a871935f6c1223f9 (diff)
downloadgit-e7f80eafd1be8c6771ef3e1e389853e18ed7e90b.tar.gz
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>
Diffstat (limited to 't/t5516-fetch-push.sh')
-rwxr-xr-xt/t5516-fetch-push.sh3
1 files changed, 1 insertions, 2 deletions
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 &&