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

Re: Cloning remotely under git for Windows not working

From
WBW. Ekkehard Blanz <ekkehard.blanz@gmail.com>
Date
Oct 20, 2022, 21:58 UTC
Message-ID
<46A1CB40-BBEE-43FC-9626-588718518B4A@gmail.com>
In-Reply-To
<CA+JQ7M92x03FPWM6qWjG=FYPxCYs8xcC_HRWLnkwj4iqA9KK=w@mail.gmail.com>
Thanks Erik,
yes, I have tried forward slashes too - all with the same result.
Oh - and I forgot to mention that even from the same (Windows 11) machine, where I can clone the repository locally via 
    git clone D:\gitDepot\test.git
it fails with the same error if I do it over the LAN (which I think should be expected).
Regarding your suggestion re. Powershell, I can start the cloning command in a power shell window on a different (or the same) Windows box, no problem, but this gives me the same result.
How do I convince git to use Powershell as its shell of choice when it arrives over ssh at my target Windows box?  Unfortunately, 
    git help clone
Does not give me any indication how to do that.
Ekkehard
Show 26 quoted lines
> On Oct 20, 2022, at 13:31, Erik Cervin Edin <erik@cervined.in> wrote:
> 
> On Thu, Oct 20, 2022, 8:16 PM W. Ekkehard Blanz
> <ekkehard.blanz@gmail.com> wrote:
>> Here is the output from running it with GIT_TRACE=1 (which I had to do under Cygwin, since this won't work in a DOS shell, but I am still using native git from Windows - did not install it in Cygwin to keep things consistent):
>> 
>>    $ GIT_TRACE=1 git clone 10.0.7.181:D:\\gitDepot\\test.git
>>    19:04:23.917439 exec-cmd.c:237          trace: resolved executable dir: D:/Applications/Git/mingw64/bin
>>    19:04:23.917439 git.c:460               trace: built-in: git clone '10.0.7.181:D:\gitDepot\test.git'
>>    Cloning into 'test'...
>>    19:04:23.948681 run-command.c:655       trace: run_command: unset GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL 10.0.7.181 'git-upload-pack '\''D:\gitDepot\test.git'\'''
>>    username@10.0.7.181's password:
>>    fatal: ''D:\gitDepot\test.git'' does not appear to be a git repository
>>    fatal: Could not read from remote repository.
>> 
>>    Please make sure you have the correct access rights
>>    and the repository exists.
>> 
>> What I got from this is to use double backslashes to get the path right (I had tried this before though), but unfortunately, the result is still the same.
> 
> Maybe try forward slash, it's valid in both unix and windows and
> sometimes plays nicer
> 
>> I will try the power shell workaround once I am back from my doctor's appointment.  Is that on the local or the remote machine or both?
> 
> on the remote
Previous: Erik Cervin EdinNext: Erik Cervin Edin
Message 5 of 9 in “Cloning remotely under git for Windows not working”
  1. W. Ekkehard BlanzOct 20, 2022
  2. Torsten BögershausenOct 20, 2022
  3. Erik Cervin EdinOct 20, 2022
  4. Erik Cervin EdinOct 20, 2022
  5. W. Ekkehard BlanzOct 20, 2022
  6. Erik Cervin EdinOct 21, 2022
  7. W. Ekkehard BlanzOct 22, 2022
  8. Erik Cervin EdinOct 21, 2022
  9. W. Ekkehard BlanzOct 20, 2022

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.