From: Linus Torvalds <torvalds@linux-foundation.org>
To: Domenico Andreoli <cavokz@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: dangling blob which is not dangling at all
Date: Tue, 31 Jul 2007 19:22:14 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.0.999.0707311914570.4161@woody.linux-foundation.org> (raw)
In-Reply-To: <20070801013450.GA16498@raptus.dandreoli.com>
On Wed, 1 Aug 2007, Domenico Andreoli wrote:
>
> $ git fsck --no-reflogs
> dangling blob e5d444e61b834c34710ce8fb5cb176e20e5894e1
>
> $ git-ls-tree 70b58535361eb633d44d4f1275af3421ca6a5ed7
> ...
> 100644 blob e5d444e61b834c34710ce8fb5cb176e20e5894e1 link_stream.c
Have you done clones with stupid protocols (rsync and/or http)?
The simplest explanation for this is that since you didn't do "--full" for
fsck, then your git-fsck never looked into the pack-files you had. And the
tree might well exist in a pack-file, and thus not even looked at by fsck.
So try "git fsck --full", and see if that changes the picture.
(Usually, you'd never have a pack-file *and* the loose object it points to
both at the same time, but especially if you use the dumb transports
(rsync and/or http), you'll get pack-files from remotes, and thus you
won't have the normal nice behaviour of pack-files being "old state", and
loose objects being "new state".
The easiest fixup is likely to just do "git gc", which which do a nice
repack, and get rid of loose objects that are duplicates of stuff
that is also in a pack-file.
Linus
next prev parent reply other threads:[~2007-08-01 2:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 1:34 dangling blob which is not dangling at all Domenico Andreoli
2007-08-01 2:22 ` Linus Torvalds [this message]
2007-08-01 6:32 ` Domenico Andreoli
2007-08-01 7:27 ` Junio C Hamano
2007-08-01 7:42 ` Domenico Andreoli
2007-08-01 8:35 ` Steven Grimm
2007-08-01 9:13 ` Rogan Dawes
2007-08-01 14:21 ` Domenico Andreoli
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=alpine.LFD.0.999.0707311914570.4161@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=cavokz@gmail.com \
--cc=git@vger.kernel.org \
/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).