git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: git@vger.kernel.org
Subject: rogue tree objects, how to diagnose?
Date: Sat, 28 Feb 2009 19:12:06 -0800 (PST)	[thread overview]
Message-ID: <20090228.191206.75012167.davem@davemloft.net> (raw)


I've got this weird problem.

In my local net-next-2.6 tree I tries to pull from a
colleague and this resulted in:

davem@sunset:~/src/GIT/net-next-2.6$ git pull git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6.git master
 ...
From git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
 * branch            master     -> FETCH_HEAD
fatal: unable to read tree c9ee57c5c20c3b7a2d7784a4172aef8b34c3a844
davem@sunset:~/src/GIT/net-next-2.6$ git show c9ee57c5c20c3b7a2d7784a4172aef8b34c3a844
fatal: bad object c9ee57c5c20c3b7a2d7784a4172aef8b34c3a844
davem@sunset:~/src/GIT/net-next-2.6$ 

Now, what's funny is that this tree object does exist in my
tree on master.kernel.org:

[davem@hera net-next-2.6.git]$ git ls-tree c9ee57c
100644 blob ffa0efce0aed06aa51be310e14dfe4b5bac8c3b4    Kconfig
100644 blob be8f287aa398f0a9697f9af30d4cda25b95ea1f0    Makefile
100644 blob dbb912574569ef49375866a5053e429bf6d38831    cm4000_cs.c
100644 blob 4f0723b07974615f5177134b49deb671580e8813    cm4040_cs.c
100644 blob 9a8b805c5095487a8f59ac22475d417d6436ac23    cm4040_cs.h
040000 tree 1314476b63b18a2c4f6dc84dd00c4ed25b7fccd9    ipwireless
100644 blob 5608a1e5a3b3416fa44e44e504c9a2817d1c3c2c    synclink_cs.c
[davem@hera net-next-2.6.git]$ 

And if I do a full clone of my master.kernel.org tree I get the
tree object.

Now, I have done a by-hand revert in this tree a long time ago
(by just by-hand changing the SHA1 ID in 'master') so that may
have contributed to this happening.

But anyways, if I pull into ~/src/GIT/net-next-2.6 locally , I don't
get that tree object.

I don't understand how this can happen, and I'd like to be able
to diagnose this intelligently.

So, what is an easy way to figure out what commit references tree
object X?

Thanks!

             reply	other threads:[~2009-03-01  3:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-01  3:12 David Miller [this message]
2009-03-01  3:20 ` rogue tree objects, how to diagnose? Jeff King
2009-03-01  3:44   ` David Miller
2009-03-01  3:46     ` Jeff King
2009-03-01  3:58       ` David Miller
2009-03-01  5:57       ` David Miller
2009-03-01  6:40         ` Junio C Hamano
2009-03-01  6:53           ` David Miller

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=20090228.191206.75012167.davem@davemloft.net \
    --to=davem@davemloft.net \
    --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).