{"thread":{"id":"10950","subject":"[PATCH] Revert \"t5516: test update of local refs on push\"","startedAt":"2007-11-21T07:19:34Z","lastAt":"2007-11-21T07:19:34Z","messageCount":1,"participants":["Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"60470","messageId":"20071121071934.GA10112@sigill.intra.peff.net","threadId":"10950","inReplyTo":null,"subject":"[PATCH] Revert \"t5516: test update of local refs on push\"","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-11-21T07:19:34Z","receivedAt":"2007-11-21T07:19:34Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"This reverts commit 09fba7a59d38d1cafaf33eadaf1d409c4113b30c.\n\nThese tests are superseded by the ones in t5404 (added in\n6fa92bf3 and 8736a848), which are more extensive and better\norganized.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\nWhen Alex introduced t5404, I had the feeling I had written similar\ntests before, but I failed to find them. I think starting t5404 was a\nmuch more sensible organization, especially since these two tests don't\nfollow the style of the rest of t5516 very well.\n\n t/t5516-fetch-push.sh |   28 ----------------------------\n 1 files changed, 0 insertions(+), 28 deletions(-)\n\ndiff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh\nindex 86f9b53..4fbd5b1 100755\n--- a/t/t5516-fetch-push.sh\n+++ b/t/t5516-fetch-push.sh\n@@ -254,32 +254,4 @@ test_expect_success 'push with dry-run' '\n \tcheck_push_result $old_commit heads/master\n '\n \n-test_expect_success 'push updates local refs' '\n-\n-\trm -rf parent child &&\n-\tmkdir parent && cd parent && git init &&\n-\t\techo one >foo && git add foo && git commit -m one &&\n-\tcd .. &&\n-\tgit clone parent child && cd child &&\n-\t\techo two >foo && git commit -a -m two &&\n-\t\tgit push &&\n-\ttest $(git rev-parse master) = $(git rev-parse remotes/origin/master)\n-\n-'\n-\n-test_expect_success 'push does not update local refs on failure' '\n-\n-\trm -rf parent child &&\n-\tmkdir parent && cd parent && git init &&\n-\t\techo one >foo && git add foo && git commit -m one &&\n-\t\techo exit 1 >.git/hooks/pre-receive &&\n-\t\tchmod +x .git/hooks/pre-receive &&\n-\tcd .. &&\n-\tgit clone parent child && cd child &&\n-\t\techo two >foo && git commit -a -m two || exit 1\n-\t\tgit push && exit 1\n-\ttest $(git rev-parse master) != $(git rev-parse remotes/origin/master)\n-\n-'\n-\n test_done\n-- \n1.5.3.6.1786.g2e199\n"}]}