| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:message-id:in-reply-to:references | |
| :subject:mime-version:content-type:content-transfer-encoding; q= | |
| dns; s=default; b=iP/k40zldYaSALbs3ZnDU5+ZgIsj9nsFKFZKKlxj6cWbsZ | |
| RRcxVMUA5/ylTogat8qazMF2pHsTemLnp0kvbRWLucp2bpogOXVFdqzhetqF7eoK | |
| 4WJiQRjAUSqWh1EHOB6R6cFLziIcbSE2lKpRDD4YqAhBcDmawdEkAUcxRD0+4= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:message-id:in-reply-to:references | |
| :subject:mime-version:content-type:content-transfer-encoding; s= | |
| default; bh=G1FIgWOeabGNjvlmY+1Luff6uoI=; b=yg/q68CNLP9xpDkaO3Q8 | |
| M/y1CM7wnSeocD7OksKgt/1CQY9d7kRqaVtSmaGLd3FagtWgWtRK2ApphmAOuMDE | |
| 0daFoSmX/hX4cAb0Fo1x2D7/0DAfUSfFpnyB0Vwb8EDvQlAJDaGnHRjIvo29MwCK | |
| my/w9YJOPqbNsJo/bsqMxXM= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=1.3 required=5.0 tests=AWL,BAYES_50,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
| X-HELO: | zimbra-new.ceos.com.au |
| Date: | Thu, 30 Apr 2015 18:44:12 +1000 (EST) |
| From: | John Orr <john DOT orr AT ceos DOT com DOT au> |
| To: | cygwin <cygwin AT cygwin DOT com> |
| Message-ID: | <397346277.275101.1430383452664.JavaMail.zimbra@ceos.com.au> |
| In-Reply-To: | <CAOC2fq8dCzjjZU3eHWWh_h5s7O0M+z482+prWz9HsQWVqAjVng@mail.gmail.com> |
| References: | <CAOC2fq8dCzjjZU3eHWWh_h5s7O0M+z482+prWz9HsQWVqAjVng AT mail DOT gmail DOT com> |
| Subject: | Re: Trouble with Git 2.1.x pushing to repos over Samba |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
> From: "Michael Enright" <mike AT kmcardiff DOT 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 AT 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 AT 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 AT 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 AT johndesktop:/cygdrive/l/tasks/cygwin_samba_uid_gid_handling ; gcc test_access.c
#: john AT 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |