]> git.ipfire.org Git - thirdparty/git.git/commitdiff
push tests: remove redundant 'git push' invocation
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 31 Jul 2018 13:07:10 +0000 (13:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 Jul 2018 16:25:25 +0000 (09:25 -0700)
Remove an invocation of 'git push' that's exactly the same as the one
on the preceding line. This was seemingly added by mistake in
dbfeddb12e ("push: require force for refs under refs/tags/",
2012-11-29) and doesn't affect the result of the test, the second
"push" was a no-op as there was nothing new to push.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh

index 08b9cf581db3ba9f7f48c5524183f8360aaa9198..4d487d687575da9839b8874f971dbe4b74f3e1fb 100755 (executable)
@@ -973,7 +973,6 @@ test_expect_success 'push requires --force to update lightweight tag' '
                cd child1 &&
                git tag testTag &&
                git push ../child2 testTag &&
-               git push ../child2 testTag &&
                >file1 &&
                git add file1 &&
                git commit -m "file1" &&