Re: [PATCH 11/25] t7400: fix broken "submodule add/reconfigure --force" test
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 16, 2018, 18:50 UTC
- Message-ID
- <CAPig+cRFeNt9FVDGnbGcp8Bvfh0ohay+p+tLhfx=EFvJg=Q1Sg@mail.gmail.com>
- In-Reply-To
- <nycvar.QRO.7.76.6.1807161749410.71@tvgsbejvaqbjf.bet>
On Mon, Jul 16, 2018 at 11:51 AM Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 15 quoted lines
> On Mon, 16 Jul 2018, Johannes Schindelin wrote: > > > - git submodule add --force bogus-url submod && > > > + git submodule add --force /bogus-url submod && > > > > This breaks on Windows because of the absolute Unix-y path having to be > > translated to a Windows path: > > > > https://git-for-windows.visualstudio.com/git/git%20Team/_build/results?buildId=12365&view=logs > > > > I could imagine that using "$(pwd)/bogus-url" (which will generate a > > Windows-y absolute path on Windows) would work, though. > > Yes, this works indeed, see the patch below. Could you please squash it in > if you send another iteration of your patch series? Junio, could you > please add this as a SQUASH??? commit so that `pu` is fixed on Windows?
Thanks for reporting and diagnosing. I wondered briefly if we could get by with simply "./bogus-url" instead of having to use $(pwd), however, "./bogus-url" gets normalized internally into an absolute path, so $(pwd) is needed anyhow to make the test '"$bogus_url" = "$(git config ...)"' check work.
So, this SQUASH looks like the correct way forward. Hopefully, Junio can just squash it so I don't have to flood the list again with this long series.