Re: [PATCH 1/3] t5523-push-upstream: add function to ensure fresh upstream repo
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Oct 13, 2010, 19:30 UTC
- Message-ID
- <20101013193039.GA8941@burratino>
- In-Reply-To
- <1286998311-5112-2-git-send-email-rctay89@gmail.com>
Tay Ray Chuan wrote:
Show 11 quoted lines
> --- 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?