{"thread":{"id":"19526","subject":"(unknown)","startedAt":"2009-05-27T13:28:29Z","lastAt":"2009-05-27T14:00:19Z","messageCount":2,"participants":["David Forman","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"114800","messageId":"APEJLFBGDNOMCHGLHIHFEEKPDEAA.dforman@dairyfoodusa.com","threadId":"19526","inReplyTo":null,"subject":"(unknown)","fromName":"David Forman","fromEmail":"dforman@dairyfoodusa.com","sentAt":"2009-05-27T13:28:29Z","receivedAt":"2009-05-27T13:28:29Z","isPatch":false,"sender":{"key":"dforman@dairyfoodusa.com","avatar":null},"body":"I've encountered the following whenever I access Git and try to compress the\ndatabase due to loose objects.\n\nerror: cannot lock ref 'HEAD~'\nerror: cannot lock ref 'refs/heads/collections~'\nerror: cannot lock ref 'refs/heads/master~'\n\nI'm on a Windows box (no comments please!), I've tried gc from the command\nline, as well as the GUI option, with the same results. Any help would be\ngreatly appreciated, last count was over 2000 loose objects.\n\nThanks,\n\nDavid Forman\nSystems Manager\ndairyfood USA, Inc.\n"},{"id":"114802","messageId":"vpqeiua8x3g.fsf@bauges.imag.fr","threadId":"19526","inReplyTo":"APEJLFBGDNOMCHGLHIHFEEKPDEAA.dforman@dairyfoodusa.com","subject":"Re: Error during git gc","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2009-05-27T14:00:19Z","receivedAt":"2009-05-27T14:00:19Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"(please provide a Subject: line)\n\n\"David Forman\" <dforman@dairyfoodusa.com> writes:\n\n> I've encountered the following whenever I access Git and try to compress the\n> database due to loose objects.\n>\n> error: cannot lock ref 'HEAD~'\n> error: cannot lock ref 'refs/heads/collections~'\n> error: cannot lock ref 'refs/heads/master~'\n\nI'd say you've edited the files .git/HEAD, refs/heads/collections, ...\nmanually with a text editor that leaves ~ backup files. Unless you\n_really_ have branches called collections~ and master~, you can move\nthese three files (in a temporary folder, or to trash if you're\nconfident enough).\n\n-- \nMatthieu\n"}]}