{"thread":{"id":"28769","subject":"Recovery after interrupted repack","startedAt":"2011-10-26T09:15:32Z","lastAt":"2011-11-01T14:49:17Z","messageCount":2,"participants":["Hannu Koivisto","Drew Northup"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"178309","messageId":"8339egazbf.fsf@kalahari.s2.org","threadId":"28769","inReplyTo":null,"subject":"Recovery after interrupted repack","fromName":"Hannu Koivisto","fromEmail":"azure@iki.fi","sentAt":"2011-10-26T09:15:32Z","receivedAt":"2011-10-26T09:15:32Z","isPatch":false,"sender":{"key":"azure@iki.fi","avatar":null},"body":"Hi,\n\nI interrupted git repack -a -f -d and now most commands say \"fatal:\nbad object HEAD\".  Additionally an attempt to run git repack again\nsays a bunch of \"error: refs/heads/foo does not point to a valid\nobject!\" messages.\n\ngit fsck prints a huge list of \"missing blob <sha-1>\" lines.\n\nI'm using a Cygwin build of git 1.7.5.1 (I also have a build of the\nlatest master available).\n\n-- \nHannu\n"},{"id":"178624","messageId":"1320158957.14775.7.camel@drew-northup.unet.maine.edu","threadId":"28769","inReplyTo":"8339egazbf.fsf@kalahari.s2.org","subject":"Re: Recovery after interrupted repack","fromName":"Drew Northup","fromEmail":"drew.northup@maine.edu","sentAt":"2011-11-01T14:49:17Z","receivedAt":"2011-11-01T14:49:17Z","isPatch":false,"sender":{"key":"drew.northup@maine.edu","avatar":"https://avatars.githubusercontent.com/u/18331571?v=4"},"body":"On Wed, 2011-10-26 at 12:15 +0300, Hannu Koivisto wrote:\n> Hi,\n> \n> I interrupted git repack -a -f -d and now most commands say \"fatal:\n> bad object HEAD\".  Additionally an attempt to run git repack again\n> says a bunch of \"error: refs/heads/foo does not point to a valid\n> object!\" messages.\n> \n> git fsck prints a huge list of \"missing blob <sha-1>\" lines.\n> \n> I'm using a Cygwin build of git 1.7.5.1 (I also have a build of the\n> latest master available).\n\nWas the result any different after running git fsck on it? If all else\nfails you can probably still use the contents of the reflog to fix\nthings, but I'm not the best reference on such matters.\n\n-- \n-Drew Northup\n________________________________________________\n\"As opposed to vegetable or mineral error?\"\n-John Pescatore, SANS NewsBites Vol. 12 Num. 59\n"}]}