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

Re: [PATCH] submodule: Improve handling of relative submodule URLs.

From
Mark Levedahl <mlevedahl@gmail.com>
Date
Feb 26, 2010, 02:03 UTC
Message-ID
<4B872C06.50502@gmail.com>
In-Reply-To
<1267126109-14638-1-git-send-email-jacob.helwig@gmail.com>
On 02/25/2010 02:28 PM, Jacob Helwig wrote:
Show 9 quoted lines
> Relative URLs only worked with<proto>://<host>/<location>  style URLs, and
> would break when cloning a repository using<user>@<host>:<location>  (scp)
> style "URL"s.
>
> When a submodule's URL was set to "../submodule.git", and the repository
> using it was cloned from "git@example.com:repo.git", git would try to
> clone the submodule from "git@example.com:repo.git/submodule.git", which
> would not likely work.
>    
My solution for this has been to always give the full path, possibly using ~
e.g.,     git@example.com:~/repo.git
and as that works fine, I'm indifferent to this proposed change.
Mark
Previous: Jacob Helwig
Message 2 of 2 in “submodule: Improve handling of relative submodule URLs.”
  1. submodule: Improve handling of relative submodule URLs.Jacob Helwig, Feb 25, 2010
  2. Mark LevedahlFeb 26, 2010

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.