{"thread":{"id":"38561","subject":"Bad object pointed under refs/head/","startedAt":"2015-02-13T10:06:58Z","lastAt":"2015-02-14T06:19:10Z","messageCount":2,"participants":["Zheng Zhang","Michael Haggerty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"256056","messageId":"CAN6kTyfiw6QPk469xV6gyL-+YB5Ca3vNHhEX7daiyn7j536SXQ@mail.gmail.com","threadId":"38561","inReplyTo":null,"subject":"Bad object pointed under refs/head/","fromName":"Zheng Zhang","fromEmail":"simsicon@gitcafe.com","sentAt":"2015-02-13T10:06:58Z","receivedAt":"2015-02-13T10:06:58Z","isPatch":false,"sender":{"key":"simsicon@gitcafe.com","avatar":null},"body":"Hi,\n\nI was running some test with Git 1.8.4.5, then I accidentally met a\nproblem that leaded to the following error,\n\n> > error: refs/heads/develop does not point to a valid object!\n\nTurns out that the sha in refs/heads/develop is a bad object id, this\nhappened after merging a branch X to branch develop, but packed-refs\nis updated to a corrected sha. No other merges at that point.\n\nThe fix is easy, just removed refs/heads/develop.\n\nSo there were two sha created, one is updated to refs/heads/develop,\nand the other one which is corrected, updated to packed-refs,  Weird.\n\nI am wondering if there is a way to prevent this happening? Is this an\nancient bug?\n\nMany thanks\n\n-- \nGitCafe.com\nShare a cup of open source\n\nZhang Zheng\n@simsicon\n"},{"id":"256099","messageId":"54DEE8DE.9060501@alum.mit.edu","threadId":"38561","inReplyTo":"CAN6kTyfiw6QPk469xV6gyL-+YB5Ca3vNHhEX7daiyn7j536SXQ@mail.gmail.com","subject":"Re: Bad object pointed under refs/head/","fromName":"Michael Haggerty","fromEmail":"mhagger@alum.mit.edu","sentAt":"2015-02-14T06:19:10Z","receivedAt":"2015-02-14T06:19:10Z","isPatch":false,"sender":{"key":"mhagger@alum.mit.edu","avatar":"https://avatars.githubusercontent.com/u/119718?v=4"},"body":"On 02/13/2015 11:06 AM, Zheng Zhang wrote:\n> I was running some test with Git 1.8.4.5, then I accidentally met a\n> problem that leaded to the following error,\n> \n>>> error: refs/heads/develop does not point to a valid object!\n> \n> Turns out that the sha in refs/heads/develop is a bad object id, this\n> happened after merging a branch X to branch develop, but packed-refs\n> is updated to a corrected sha. No other merges at that point.\n> \n> The fix is easy, just removed refs/heads/develop.\n> \n> So there were two sha created, one is updated to refs/heads/develop,\n> and the other one which is corrected, updated to packed-refs,  Weird.\n> \n> I am wondering if there is a way to prevent this happening? Is this an\n> ancient bug?\n\nIf you can find and document a way to reproduce this problem, then you\nwill have a much better chance of finding somebody who is willing to\nlook into it. Otherwise it's hard to know how to even get started.\n\nMichael\n\n-- \nMichael Haggerty\nmhagger@alum.mit.edu\n"}]}