Re: [PATCH v3 1/3] submodule: add test to demonstrate that shallow recursive clones fail
- From
Stefan Beller <stefanbeller@gmail.com>
- Date
- Mar 20, 2016, 21:27 UTC
- Message-ID
- <56EF15C8.9060309@gmail.com>
- In-Reply-To
- <20160320194049.GA6288@sigill.intra.peff.net>
On 20.03.2016 12:40, Jeff King wrote:
Show 16 quoted lines
> On Sun, Mar 20, 2016 at 06:05:34PM +0100, Lars Schneider wrote: > >>>> +test_expect_failure shallow-clone-recursive ' >>>> + URL="file://$(pwd | sed "s/[[:space:]]/%20/g")/repo" && >>> >>> This would break if the test suite is in a path containing any other white space >>> than U+0020 such as a tab? (Not that I am encouraging using such paths...) >> True. I wonder if we really need to use the "file://" URL format here. Maybe >> a relative would be easier?! > > I did not look closely at the patch or the tests, but generally we skip > shallow-cloning for local-path repositories, as we don't do a regular > object transfer at all (and we turn that optimization off for file:// > URLs). So presumably it would defeat the purpose of the test. > > -Peff
Please see proposed patches at $gmane/288940
By passing along the --[no-]local option we can have tests, without using file:// explicitely.
Thanks, Stefan