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

Re: [PATCH] remote-curl: Add sanity check for url

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Mar 31, 2010, 02:43 UTC
Message-ID
<u2tf3271551003301943sf703e66fz4274135efd991430@mail.gmail.com>
In-Reply-To
<7voci5qspr.fsf@alter.siamese.dyndns.org>
Hi,
> I may be being slow but I do not see the point of this patch.

Agreed, it's not a bug that any end-user would normally bump into. I bumped into this myself when I assumed that the remote `foo` exists, and invoked `git-remote-http foo`. Since remote_get() transparently creates a remote when one does not exist, remote-curl doesn't know if the remote `foo` ever really exists. Going off to fetch a HTML page when an expected remote doesn't exist is really ugly, so I thought I'd prepare this patch. Plus, it doesn't hurt to make sure that the remote helper conforms to the documentation- useful when a developer is calling it independently.

-- Ram
Previous: Junio C Hamano
Message 3 of 3 in “remote-curl: Add sanity check for url”
  1. remote-curl: Add sanity check for urlRamkumar Ramachandra, Mar 30, 2010
  2. Junio C HamanoMar 30, 2010
  3. Ramkumar RamachandraMar 31, 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.