From: Tay Ray Chuan Date: Sat, 16 Oct 2010 18:37:01 +0000 (+0800) Subject: t5523-push-upstream: add function to ensure fresh upstream repo X-Git-Tag: v1.7.4-rc0~135^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d59ced10418f60914f353031215ecc6adcef204;p=git.git t5523-push-upstream: add function to ensure fresh upstream repo Signed-off-by: Tay Ray Chuan Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/t/t5523-push-upstream.sh b/t/t5523-push-upstream.sh index 00da70763..5a18533ad 100755 --- a/t/t5523-push-upstream.sh +++ b/t/t5523-push-upstream.sh @@ -3,8 +3,12 @@ test_description='push with --set-upstream' . ./test-lib.sh +ensure_fresh_upstream() { + rm -rf parent && git init --bare parent +} + test_expect_success 'setup bare parent' ' - git init --bare parent && + ensure_fresh_upstream && git remote add upstream parent '