git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Relative url values in .gitmodules confusingly sensitive to clone via ssh vs https.

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Mar 23, 2020, 23:53 UTC
Message-ID
<20200323235358.GF6499@camp.crustytoothpaste.net>
In-Reply-To
<CAAjm7GZXNXcGMp7p2f+UoDUWMPY+Z4aFHv35tynteVSKDf2Fqw@mail.gmail.com>
On 2020-03-23 at 15:09:39, Benjamin Shropshire wrote:
> $ git --version
> git version 2.20.1

Hmmm, it looks like that version has the same test, t0060, which has this:

  test_submodule_relative_url "(null)" "user@host:path/to/repo" "../subrepo" "user@host:path/to/subrepo"
  test_submodule_relative_url "(null)" "user@host:repo" "../subrepo" "user@host:subrepo"
  test_submodule_relative_url "(null)" "user@host:repo" "../../subrepo" ".:subrepo"

I have confirmed that your test case does work for me on the version of Git I mentioned above with the following repos:

  bmc@castro:foo/foo.git
  bmc@castro:bar/bar.git
And foo.git having the following .gitmodules:
  [submodule "bar.git"]
          path = bar.git
          url = ../../bar/bar.git

It's puzzling to me that this isn't working for you on 2.20.1 but it works for me on a 2.26 prerelease, yet both versions have the same test.

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Benjamin Shropshire
Message 7 of 7 in “Relative url values in .gitmodules confusingly sensitive to clone via ssh vs https.”
  1. Benjamin ShropshireMar 17, 2020
  2. brian m. carlsonMar 18, 2020
  3. Benjamin ShropshireMar 18, 2020
  4. brian m. carlsonMar 20, 2020
  5. brian m. carlsonMar 23, 2020
  6. Benjamin ShropshireMar 23, 2020
  7. brian m. carlsonMar 23, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.