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

RE: Git problem in windows server

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Nov 21, 2024, 19:28 UTC
Message-ID
<035401db3c4b$91ca9c70$b55fd550$@nexbridge.com>
In-Reply-To
<20241121190522.6s63bsvhxm3w5f5b@carbon>
On November 21, 2024 2:05 PM, Konstantin Khomoutov wrote:
Show 19 quoted lines
>On Thu, Nov 21, 2024 at 11:24:42AM +0100, Luis Heredia wrote:
>
>[...]
>> The problem is when i try to clone in my windows 10 local machine (cmd
>> git clone - v ssh://user@serverIp:port/gitServer/git.git c:/temp) i
>> always receive the error "fatal: ´´/gitServer/git.git''  does not
>> appear to be a git repository".
>
>Does it work if you call
>
>  git clone ssh://user@serverIp:port/c/gitServer/git.git
>
>or may be
>
>  git clone ssh://user@serverIp:port/c:/gitServer/git.git
>
>?
>
>Basically the problem appears to be in that the Git process spawned
remotely in the
>SSH session set up by your local Git process, is given the path component
of the
>repository URL, which is "/gitServer/git.git" in your case.
>Obviously, this path is not correct on Windows filesystems.

Some SSH servers restrict interactions to a specific directory rather than allowing access to the root of the disk. I got around that by setting up a link (via Cygwin64) to the target location, which bypasses the configured SSH root. It would then require a different URI to account for that.

--Randall
Previous: Konstantin KhomoutovNext: Konstantin Khomoutov
Message 4 of 5 in “Git problem in windows server”
  1. Luis HerediaNov 21, 2024
  2. Phillip WoodNov 21, 2024
  3. Konstantin KhomoutovNov 21, 2024
  4. rsbecker@nexbridge.comNov 21, 2024
  5. Konstantin KhomoutovNov 22, 2024

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.