From: Tay Ray Chuan Date: Wed, 13 Oct 2010 19:31:49 GMT Subject: [PATCH 1/3] t5523-push-upstream: add function to ensure fresh upstream repo Message-ID: <1286998311-5112-2-git-send-email-rctay89@gmail.com> In-Reply-To: <1286998311-5112-1-git-send-email-rctay89@gmail.com> Signed-off-by: Tay Ray Chuan --- t/t5523-push-upstream.sh | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/t/t5523-push-upstream.sh b/t/t5523-push-upstream.sh index 00da707..337a69e 100755 --- a/t/t5523-push-upstream.sh +++ b/t/t5523-push-upstream.sh @@ -3,8 +3,14 @@ test_description='push with --set-upstream' . ./test-lib.sh +ensure_fresh_upstream() { + test -d parent && + 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 ' -- 1.7.2.2.513.ge1ef3