git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bad object pointed under refs/head/
@ 2015-02-13 10:06 Zheng Zhang
  2015-02-14  6:19 ` Michael Haggerty
  0 siblings, 1 reply; 2+ messages in thread
From: Zheng Zhang @ 2015-02-13 10:06 UTC (permalink / raw)
  To: git; +Cc: GitCafe-dev-team

Hi,

I was running some test with Git 1.8.4.5, then I accidentally met a
problem that leaded to the following error,

> > error: refs/heads/develop does not point to a valid object!

Turns out that the sha in refs/heads/develop is a bad object id, this
happened after merging a branch X to branch develop, but packed-refs
is updated to a corrected sha. No other merges at that point.

The fix is easy, just removed refs/heads/develop.

So there were two sha created, one is updated to refs/heads/develop,
and the other one which is corrected, updated to packed-refs,  Weird.

I am wondering if there is a way to prevent this happening? Is this an
ancient bug?

Many thanks

-- 
GitCafe.com
Share a cup of open source

Zhang Zheng
@simsicon

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

end of thread, other threads:[~2015-02-14  6:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-13 10:06 Bad object pointed under refs/head/ Zheng Zhang
2015-02-14  6:19 ` Michael Haggerty

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