From: John Orr <john.orr@ceos.com.au>
To: cygwin <cygwin@cygwin.com>
Subject: Re: Trouble with Git 2.1.x pushing to repos over Samba
Date: Thu, 30 Apr 2015 08:44:00 -0000 [thread overview]
Message-ID: <397346277.275101.1430383452664.JavaMail.zimbra@ceos.com.au> (raw)
In-Reply-To: <CAOC2fq8dCzjjZU3eHWWh_h5s7O0M+z482+prWz9HsQWVqAjVng@mail.gmail.com>
> From: "Michael Enright" <mike@kmcardiff.com>
> $ git push origin master
> fatal: '//host/path/to/repo.git/' does not appear to be a git repository
> fatal: Could not read from remote repository.
I've been fighting possibly similar problems with git not working on samba shares, on version 1.7.34 and above.
eg on a mapped drive,
#: john@johndesktop:/cygdrive/l ; git log
fatal: Not a git repository (or any parent up to mount point /cygdrive/l)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
I've debugged git, and the problem in my case is that whilst I appear to have execute permissions on .git/objects:
#: john@johndesktop:/cygdrive/l ; ls -ld .git/objects/
drwxr-xr-x 1 john Unix_Group+1000 0 Nov 13 14:13 .git/objects/
(albeit, Corinna, with my group issue still not yet resolved)
the unistd.h function 'access' in git/setup.c claims I don't have the required execute permissions for .git/objects. Testing it:
#: john@johndesktop:/cygdrive/l/tasks/cygwin_samba_uid_gid_handling ; cat test_access.c
#include <unistd.h>
#include <stdio.h>
int main()
{
char* path = "/cygdrive/l/.git";
printf("access(%s, R_OK) returned %d\n", path, access(path, R_OK));
printf("access(%s, W_OK) returned %d\n", path, access(path, W_OK));
printf("access(%s, X_OK) returned %d\n", path, access(path, X_OK));
}
#: john@johndesktop:/cygdrive/l/tasks/cygwin_samba_uid_gid_handling ; gcc test_access.c
#: john@johndesktop:/cygdrive/l/tasks/cygwin_samba_uid_gid_handling ; a.exe
access(/cygdrive/l/.git, R_OK) returned 0
access(/cygdrive/l/.git, W_OK) returned 0
access(/cygdrive/l/.git, X_OK) returned -1
The last test is the one run by git, that makes it reject my /cygdrive/l/.git directory.
Not sure if that's relevant, but just in case.
John
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2015-04-30 8:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 4:26 Michael Enright
2015-04-30 8:44 ` John Orr [this message]
2015-04-30 8:54 ` John Orr
2015-04-30 10:56 ` Corinna Vinschen
2015-04-30 11:11 ` Michael Enright
2015-04-30 11:17 ` Corinna Vinschen
2015-04-30 15:02 ` Michael Enright
2015-04-30 15:10 ` Corinna Vinschen
2015-04-30 23:54 ` John Orr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=397346277.275101.1430383452664.JavaMail.zimbra@ceos.com.au \
--to=john.orr@ceos.com.au \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).