git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rogue tree objects, how to diagnose?
@ 2009-03-01  3:12 David Miller
  2009-03-01  3:20 ` Jeff King
  0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2009-03-01  3:12 UTC (permalink / raw)
  To: git


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!

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-01  6:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-01  3:12 rogue tree objects, how to diagnose? David Miller
2009-03-01  3:20 ` 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

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).