From 2d59ced10418f60914f353031215ecc6adcef204 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Sun, 17 Oct 2010 02:37:01 +0800 Subject: [PATCH] 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 --- t/t5523-push-upstream.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ' -- 2.26.2