Re: Cloning remotely under git for Windows not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> On Oct 20, 2022, at 13:31, Erik Cervin Edin <erik@xxxxxxxxxxx> wrote:
> 
> On Thu, Oct 20, 2022, 8:16 PM W. Ekkehard Blanz
> <ekkehard.blanz@xxxxxxxxx> 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





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux