Re: [PATCH 1/3] t5523-push-upstream: add function to ensure fresh upstream repo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]