Skip to content

Commit e7f80ea

Browse files
felipecgitster
authored andcommitted
tests: push: trivial cleanup
No need to do two checkouts. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 12a30a3 commit e7f80ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/t5516-fetch-push.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,7 @@ test_expect_success 'push with HEAD nonexisting at remote' '
457457
test_expect_success 'push with +HEAD' '
458458
459459
mk_test testrepo heads/master &&
460-
git checkout master &&
461-
git checkout -b local &&
460+
git checkout -b local master &&
462461
test_when_finished "git checkout master; git branch -D local" &&
463462
git push testrepo master local &&
464463
check_push_result testrepo $the_commit heads/master &&

0 commit comments

Comments
 (0)