Re: Error: unable to unlink ... when using "git gc"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 6, 2009, 08:59 UTC
- Message-ID
- <7vy6xohkt2.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <488807870901052300y57f59b90rdc03cc47c790b416@mail.gmail.com>
"Johnny Lee" <johnnylee194@gmail.com> writes:
Show 6 quoted lines
> 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
Check "ls -ld .git/objects/16" and see if it is owned by you and writable by you.
In sane POSIX filesystem semantics, it should not pose with problem with respect to removal that a file is unwritable.
What counts is the writability of the parent directory.