I have two computers, say notebook and desktop. Both have cygwin with git and msysgit installed.
When I am on desktop and do a git fetch origin from the cygwin command window, everything works fine, as well as git fetch origin from the msysgit console.
But when I SSH into desktop from notebook using the cygwin SSH client and then do a git fetch origin from the SSH session, I get
error: could not open '//path/to/origin.git'
fatal: Could not read bundle '//path/to/origin.git'.
I assume it is a rights problem because the share I'm accessing is not readable for everyone but only for certain users. I think, when going through SSH to my desktop, I am not the same user as I am when accessing the share directly from desktop.
How do I get the correct user in cygwin to access a protected share?
Edit: although it's claimed that this question shall be a duplicate of 'X' does not appear to be a git repository (I'm sure the path is correct), I don't see any relations to that question.
Edit: if that matters:
- cygwin git is in version 1.7.5.1
- cygwin ssh is OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011
- msysgit is in version 1.7.6.msysgit.0