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

Re: git doesn't append ".git" to url WAS [PATCH 0/3] http*: refactor fetching code (v2)

From
Tay Ray Chuan <rctay89@gmail.com>
Date
May 21, 2009, 15:39 UTC
Message-ID
<be6fef0d0905210839i1789dc33uc760ab7779e68b51@mail.gmail.com>
In-Reply-To
<alpine.LSU.2.00.0905211518430.23333@hermes-2.csi.cam.ac.uk>
Hi,
On Thu, May 21, 2009 at 10:29 PM, Tony Finch <dot@dotat.at> wrote:
> ...Git's error message is misleading: the problem is
> nothing to do with running git update-server-info (see below).

you're right. Perhaps git should check if the repo (on http://) exists first, before printing that message.

> Its
> behaviour is inconsistent: git retries after appending .git if you are
> fetching from a local repository or ssh:// or git:// URLs but not for
> http:// URLs.
that's true too.
> Actually maybe there's a third bug: it says it has initialized
> a repository but it removes it again if the clone fails.

well, if the clone fails, then the cloned repo would be in an incomplete state, so removing it isn't that bad an idea. Perhaps an option could be made to prevents clone from doing this, so that one could try restarting the clone.

-- 
Cheers,
Ray Chuan
Previous: Tony Finch
Message 3 of 3 in “Re: git doesn't append ".git" to url WAS [PATCH 0/3] http*: refactor fetching code (v2)”
  1. Tay Ray ChuanMay 21, 2009
  2. Tony FinchMay 21, 2009
  3. Tay Ray ChuanMay 21, 2009

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.