From: Linus Torvalds <torvalds@osdl.org>
To: Martin Langhoff <martin.langhoff@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Strange unable to unlink error with git-prune-packed
Date: Wed, 4 Jan 2006 08:34:18 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0601040828590.3668@g5.osdl.org> (raw)
In-Reply-To: <46a038f90601032046l31f51742k93f3f9f5a826bef1@mail.gmail.com>
On Wed, 4 Jan 2006, Martin Langhoff wrote:
>
> When I invoke git-prune-packed I am greeted by (3-line sample):
>
> error: unable to unlink .git/objects/43/2251e8488dc3c72d94d698ed69003137c47244
> error: unable to unlink .git/objects/43/6bc8b274ab96944a6f8c3cf5e3fbeef422042b
> error: unable to unlink .git/objects/43/fe47e9508289ad4eca71613a9f20d7f3323602
Does it happen for all your files? All your repositories? Or just one
repo? Or just one subdirectory in that repo?
The code is _literally_ just doing a
if (unlink(pathname) < 0)
error("unable to unlink %s", pathname);
but maybe you could just make it print out the reason too. So add a "(%s)"
and a "strerror(errno)" to that error line..
> $ ls -la .git/objects/43
> total 24
> drwxr-xr-x 5 martin martin 170 4 Jan 17:37 .
I don't see why you couldn't unlink those files. Maybe it's some strange
HFS issue and you can't just unlink() things that have attributes or
something? Maybe some crazy file manager has added a default icon
attribute to your files if you happened to look at the .git objects
directory?
Linus
next prev parent reply other threads:[~2006-01-04 16:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-04 4:46 Strange unable to unlink error with git-prune-packed Martin Langhoff
2006-01-04 16:34 ` Linus Torvalds [this message]
2006-01-04 22:10 ` Martin Langhoff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0601040828590.3668@g5.osdl.org \
--to=torvalds@osdl.org \
--cc=git@vger.kernel.org \
--cc=martin.langhoff@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).