Re: Cloning remotely under git for Windows not working
From: W. Ekkehard Blanz <hidden>
Date: 2022-10-20 20:50:35
On Oct 20, 2022, at 10:44, W. Ekkehard Blanz [off-list ref] wrote: Yup Torsten, I tried that, plus all the conceivable combination with double backslashes, escaping the second colon with a backslash, and all this other stuff that Microsoft was kind enough to introduce into the world during good old DOS days. Nothing seemed to help But just for the record: $ git clone 10.0.7.181:d:/gitDepot/test.git Cloning into 'test'... 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.quoted
On Oct 20, 2022, at 10:24, Torsten Bögershausen [off-list ref] wrote: On Thu, Oct 20, 2022 at 08:58:54AM -0700, W. Ekkehard Blanz wrote:quoted
I am almost certain this is not a bug but a deficiency in my understanding. But I can't be certain. Here it goes... I copied an existing and valid bare git repository to a brand new Windows 11 machine (10.0.7.181) into D:\gitDepot\test.git The problem is that from any other machine on the LAN (Kubuntu 20.04, Raspberry Pi running buster, an M1 MacBook Pro running macOS Monterey 12.6, and a Windows 10 box), I cannot clone it remotely. I made sure ssh works correctly on all machines. If I clone locally on the Windows 11 box where the repository resides, it works just fine. Version of git on the Mac is 2.30.1, on RBPi 2.20.1, the one on Linux is 2.25.1, and Windows 10 and Windows 11 are running the git version 2.38.1-6 I downloaded the day before yesterday. Since both Windows boxes are running the latest version of git (for Windows), I'll focus on these. Here is the output from trying from the Windows 10 machine via the LAN (but Linux, RBPi, and Mac are equivalent, modulo the dreaded backslash quirks on all non-Windows machines): $ git clone 10.0.7.181:D:\gitDepot\test.git Cloning into 'test'... 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.This is somewhat out of the blue, did you try git clone 10.0.7.181:D:/gitDepot/test.git What result do you get ?