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

Re: Cloning remotely under git for Windows not working

From
EEErik Cervin Edin <erik@cervined.in>
Date
Oct 20, 2022, 20:31 UTC
Message-ID
<CA+JQ7M92x03FPWM6qWjG=FYPxCYs8xcC_HRWLnkwj4iqA9KK=w@mail.gmail.com>
In-Reply-To
<DB5611E0-6B1C-4711-BB9F-72F6E8F39506@gmail.com>

On Thu, Oct 20, 2022, 8:16 PM W. Ekkehard Blanz <ekkehard.blanz@gmail.com> wrote:

Show 15 quoted lines
> 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: W. Ekkehard Blanz
Message 4 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.