From: Jonathan Nieder Date: Wed, 13 Oct 2010 19:30:39 GMT Subject: Re: [PATCH 1/3] t5523-push-upstream: add function to ensure fresh upstream repo Message-ID: <20101013193039.GA8941@burratino> In-Reply-To: <1286998311-5112-2-git-send-email-rctay89@gmail.com> Tay Ray Chuan wrote: > --- 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 > +} Wouldn't rm -rf parent && git init --bare parent do it?