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