{"thread":{"id":"19527","subject":"Re: Error during git gc","startedAt":"2009-05-27T15:03:47Z","lastAt":"2009-05-27T15:03:47Z","messageCount":1,"participants":["Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"114806","messageId":"vpq63fmtwoc.fsf@bauges.imag.fr","threadId":"19527","inReplyTo":"APEJLFBGDNOMCHGLHIHFGELBDEAA.dforman@dairyfoodusa.com","subject":"Re: Error during git gc","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2009-05-27T15:03:47Z","receivedAt":"2009-05-27T15:03:47Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"(please, keep the Git list in copy, and don't top-post)\n\n\"David Forman\" <dforman@dairyfoodusa.com> writes:\n\n> Hi Matthieu,\n>\n> Thanks for the quick reply. Silly me, I was thinking it was an authorization\n> issue or something. Now I understand (I think) that the issue is, it's\n> trying to access these files, but they don't exist. I can't seem to find the\n> '~' files anywhere in the project or .git folder. Is there a spot where\n> these names are registered that I can remove them so Git doesn't look for\n> them?\n\nMaybe in .git/packed-refs, but I think (or thought !) that Git found\nthese files only by listing directories.\n\n> -----Original Message-----\n> From: Matthieu Moy [mailto:Matthieu.Moy@imag.fr]\n> Sent: Wednesday, May 27, 2009 9:00 AM\n> To: David Forman\n> Cc: git@vger.kernel.org\n> Subject: Re: Error during git gc\n>\n>\n> (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\n> 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>\n> I'd say you've edited the files .git/HEAD, refs/heads/collections, ...\n> manually with a text editor that leaves ~ backup files. Unless you\n> _really_ have branches called collections~ and master~, you can move\n> these three files (in a temporary folder, or to trash if you're\n> confident enough).\n\n-- \nMatthieu\n"}]}