1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-31 14:27:54 +01:00

t/t5528-push-default: remove redundant test_config lines

The line

  test_config push.default upstream

appears unnecessarily in two tests, as the final test_push_failure sets
push.default before pushing anyway.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ramkumar Ramachandra 2013-06-19 16:41:39 +05:30 committed by Junio C Hamano
parent fb7dfaa710
commit 3cb8a5ff17

View file

@ -48,7 +48,6 @@ test_expect_success '"upstream" pushes to configured upstream' '
test_expect_success '"upstream" does not push on unconfigured remote' ' test_expect_success '"upstream" does not push on unconfigured remote' '
git checkout master && git checkout master &&
test_unconfig branch.master.remote && test_unconfig branch.master.remote &&
test_config push.default upstream &&
test_commit three && test_commit three &&
test_push_failure upstream test_push_failure upstream
' '
@ -57,7 +56,6 @@ test_expect_success '"upstream" does not push on unconfigured branch' '
git checkout master && git checkout master &&
test_config branch.master.remote parent1 && test_config branch.master.remote parent1 &&
test_unconfig branch.master.merge && test_unconfig branch.master.merge &&
test_config push.default upstream
test_commit four && test_commit four &&
test_push_failure upstream test_push_failure upstream
' '