Re: Relative url values in .gitmodules confusingly sensitive to clone via ssh vs https.
- From
- Benjamin Shropshire <benjamin.shropshire@economicmodeling.com>
- Date
- Mar 23, 2020, 15:09 UTC
- Message-ID
- <CAAjm7GZXNXcGMp7p2f+UoDUWMPY+Z4aFHv35tynteVSKDf2Fqw@mail.gmail.com>
- In-Reply-To
- <20200323011117.GC6499@camp.crustytoothpaste.net>
$ git --version git version 2.20.1
On Sun, Mar 22, 2020 at 6:11 PM brian m. carlson <sandals@crustytoothpaste.net> wrote:
Show 26 quoted lines
> > On 2020-03-17 at 18:34:09, Benjamin Shropshire wrote: > > From my perspective, this is a bug. > > > > If I clone a repo twice like this: > > > > git clone https://github.com/user/repo.git ./https > > git clone git@github.com:user/repo.git ./ssh > > > > And if it contains a .gitmodules like this: > > > > [submodule "x"] > > path = xxx > > url = ../../different-user/something.git > > > > When I `git submodule update --init --recursive` in each, only the > > HTTPS version works. the SSH version confusingly seems to try to find > > something at ~/different-user/something.git or some other path in the > > local file system. > > What version of Git are you using? This works fine for me on a recent > next. In addition, I see we have tests for this in t0060, and adding an > additional case for this appears to pass. > -- > brian m. carlson: Houston, Texas, US > OpenPGP: https://keybase.io/bk2204