From: Thomas Rast Date: Thu, 12 Nov 2009 16:10:43 GMT Subject: Re: get git not to care about permissions Message-ID: <200911121710.44314.trast@student.ethz.ch> In-Reply-To: <3cf217d80911120744g5e020003rc00c460fff0bff1d@mail.gmail.com> Matt Schoen wrote: > error: Unable to open > /ad/eng/courses/ec/ec464/ec464-team03/test.git/HEAD.lock for writing > > ls -al in the directory gives me: > total 12 > drwx------ 3 schoen root 4096 Nov 12 10:41 . > d--------- 7 root root 4096 Nov 12 10:41 .. > -rwx------ 1 schoen root 0 Nov 12 10:41 HEAD.lock At least in my current copy, this can only come from // lock.c:1371 lockpath = mkpath("%s.lock", git_HEAD); fd = open(lockpath, O_CREAT | O_EXCL | O_WRONLY, 0666); if (fd < 0) { error("Unable to open %s for writing", lockpath); It prints an absolute path, so the open() also accesses an absolute path (though I don't know why it insists on that). But the above directory listing would indicate that you do not even have permission to look inside your $(pwd) by absolute path... -- Thomas Rast trast@{inf,student}.ethz.ch