@matheusbsbs / matheus-bagliano / commits / 0673c96db9
Fork 0

Revert "t5516: test update of local refs on push"

This reverts commit 09fba7a59d38d1cafaf33eadaf1d409c4113b30c. These tests are superseded by the ones in t5404 (added in 6fa92bf3 and 8736a848), which are more extensive and better organized. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Nov 21, 2007 at 02:19 UTC 0673c96db92429d1c6dee528c71b067470b1e8f9
1 file changed -28
t/t5516-fetch-push.sh
-28
@@ -254,32 +254,4 @@ test_expect_success 'push with dry-run' '
254 check_push_result $old_commit heads/master
255 '
256
257 -test_expect_success 'push updates local refs' '
258 -
259 - rm -rf parent child &&
260 - mkdir parent && cd parent && git init &&
261 - echo one >foo && git add foo && git commit -m one &&
262 - cd .. &&
263 - git clone parent child && cd child &&
264 - echo two >foo && git commit -a -m two &&
265 - git push &&
266 - test $(git rev-parse master) = $(git rev-parse remotes/origin/master)
267 -
268 -'
269 -
270 -test_expect_success 'push does not update local refs on failure' '
271 -
272 - rm -rf parent child &&
273 - mkdir parent && cd parent && git init &&
274 - echo one >foo && git add foo && git commit -m one &&
275 - echo exit 1 >.git/hooks/pre-receive &&
276 - chmod +x .git/hooks/pre-receive &&
277 - cd .. &&
278 - git clone parent child && cd child &&
279 - echo two >foo && git commit -a -m two || exit 1
280 - git push && exit 1
281 - test $(git rev-parse master) != $(git rev-parse remotes/origin/master)
282 -
283 -'
284 -
257 test_done