From: Jeff King Date: Tue, 06 Jan 2009 07:22:54 GMT Subject: Re: Error: unable to unlink ... when using "git gc" Message-ID: <20090106072253.GA9920@coredump.intra.peff.net> In-Reply-To: <488807870901052300y57f59b90rdc03cc47c790b416@mail.gmail.com> On Tue, Jan 06, 2009 at 03:00:52PM +0800, Johnny Lee wrote: > While I'm looking at these "unable to unlink" files, it seems they are > read only: > git@tomato:~/golf$ ls -l .git/objects/16/ > total 4 > -r--r--r-- 1 johnny johnny 26 2009-01-05 09:25 > b14f5da9e2fcd6f3f38cc9e584cef2f3c90ebe > > Is there anything wrong here? It is normal for objects to be read-only. However, permission to unlink a file comes from its directory permission. Is .git/objects/16 writable by you? -Peff