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

Re: git clone does not understand insteadOf URLs

From
GBGioele Barabucci <gioele@svario.it>
Date
May 26, 2013, 19:03 UTC
Message-ID
<51A25C77.6040205@svario.it>
In-Reply-To
<20130526190019.GM27005@serenity.lan>
Il 26/05/2013 21:00, John Keeping ha scritto:
Show 16 quoted lines
>> Regardless of the implementation of the commands, if I do
>>
>>       mkdir projectA
>>       cd projectA
>>       git init .
>>       git remote add origin remote-repo/projectA.git
>>       git pull origin master
>>
>> I get a working repository. If I do
>>
>>       git clone remote-repo/projectA.git
>>
>> all I will get is an error.
>
> So the problem is that "git clone" does not seem to perform normal
> remote processing if you give it something that looks like a path.

I understand the problem. In the original email that started this thread I asked for...

> I suppose that git interprets the argument as a local directory. Git
> should see if the argument matches one of the known URLs before
> raising an error.

I think all the paths should mean the same in every git command. In this case, checking for insteadOf URLs before failing would solve this problem.

Regards,
-- 
Gioele Barabucci <gioele@svario.it>
Previous: John KeepingNext: Junio C Hamano
Message 9 of 10 in “git clone does not understand insteadOf URLs”
  1. Gioele BarabucciMay 25, 2013
  2. Elia PintoMay 26, 2013
  3. Gioele BarabucciMay 26, 2013
  4. Andreas SchwabMay 26, 2013
  5. Gioele BarabucciMay 26, 2013
  6. John KeepingMay 26, 2013
  7. Gioele BarabucciMay 26, 2013
  8. John KeepingMay 26, 2013
  9. Gioele BarabucciMay 26, 2013
  10. Junio C HamanoMay 28, 2013

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.