From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47774 invoked by alias); 30 Apr 2015 08:44:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 47765 invoked by uid 89); 30 Apr 2015 08:44:19 -0000 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 Received: from mail3.ceos.com.au (HELO zimbra-new.ceos.com.au) (203.214.65.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 30 Apr 2015 08:44:18 +0000 Received: from localhost (localhost [127.0.0.1]) by zimbra-new.ceos.com.au (Postfix) with ESMTP id CB601C294D9 for ; Thu, 30 Apr 2015 18:44:13 +1000 (AEST) Received: from zimbra-new.ceos.com.au ([127.0.0.1]) by localhost (zimbra-new.ceos.com.au [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id BprnQOnkd2pr for ; Thu, 30 Apr 2015 18:44:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by zimbra-new.ceos.com.au (Postfix) with ESMTP id CCF2EC294D8 for ; Thu, 30 Apr 2015 18:44:12 +1000 (AEST) Received: from zimbra-new.ceos.com.au ([127.0.0.1]) by localhost (zimbra-new.ceos.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hL5rAlJvBkTq for ; Thu, 30 Apr 2015 18:44:12 +1000 (AEST) Received: from zimbra-new.ceos.com.au (zimbra-new.ceos.com.au [172.17.2.3]) by zimbra-new.ceos.com.au (Postfix) with ESMTP id B4DEDC294D9 for ; Thu, 30 Apr 2015 18:44:12 +1000 (AEST) Date: Thu, 30 Apr 2015 08:44:00 -0000 From: John Orr To: cygwin Message-ID: <397346277.275101.1430383452664.JavaMail.zimbra@ceos.com.au> In-Reply-To: References: Subject: Re: Trouble with Git 2.1.x pushing to repos over Samba MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00645.txt.bz2 > From: "Michael Enright" > $ 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 #include 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