* Re: Error during git gc
[not found] <APEJLFBGDNOMCHGLHIHFGELBDEAA.dforman@dairyfoodusa.com>
@ 2009-05-27 15:03 ` Matthieu Moy
0 siblings, 0 replies; 2+ messages in thread
From: Matthieu Moy @ 2009-05-27 15:03 UTC (permalink / raw)
To: David Forman; +Cc: git
(please, keep the Git list in copy, and don't top-post)
"David Forman" <dforman@dairyfoodusa.com> writes:
> Hi Matthieu,
>
> Thanks for the quick reply. Silly me, I was thinking it was an authorization
> issue or something. Now I understand (I think) that the issue is, it's
> trying to access these files, but they don't exist. I can't seem to find the
> '~' files anywhere in the project or .git folder. Is there a spot where
> these names are registered that I can remove them so Git doesn't look for
> them?
Maybe in .git/packed-refs, but I think (or thought !) that Git found
these files only by listing directories.
> -----Original Message-----
> From: Matthieu Moy [mailto:Matthieu.Moy@imag.fr]
> Sent: Wednesday, May 27, 2009 9:00 AM
> To: David Forman
> Cc: git@vger.kernel.org
> Subject: Re: Error during git gc
>
>
> (please provide a Subject: line)
>
> "David Forman" <dforman@dairyfoodusa.com> writes:
>
>> I've encountered the following whenever I access Git and try to compress
> the
>> database due to loose objects.
>>
>> error: cannot lock ref 'HEAD~'
>> error: cannot lock ref 'refs/heads/collections~'
>> error: cannot lock ref 'refs/heads/master~'
>
> I'd say you've edited the files .git/HEAD, refs/heads/collections, ...
> manually with a text editor that leaves ~ backup files. Unless you
> _really_ have branches called collections~ and master~, you can move
> these three files (in a temporary folder, or to trash if you're
> confident enough).
--
Matthieu
^ permalink raw reply [flat|nested] 2+ messages in thread
* (unknown),
@ 2009-05-27 13:28 David Forman
2009-05-27 14:00 ` Error during git gc Matthieu Moy
0 siblings, 1 reply; 2+ messages in thread
From: David Forman @ 2009-05-27 13:28 UTC (permalink / raw)
To: git
I've encountered the following whenever I access Git and try to compress the
database due to loose objects.
error: cannot lock ref 'HEAD~'
error: cannot lock ref 'refs/heads/collections~'
error: cannot lock ref 'refs/heads/master~'
I'm on a Windows box (no comments please!), I've tried gc from the command
line, as well as the GUI option, with the same results. Any help would be
greatly appreciated, last count was over 2000 loose objects.
Thanks,
David Forman
Systems Manager
dairyfood USA, Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error during git gc
2009-05-27 13:28 (unknown), David Forman
@ 2009-05-27 14:00 ` Matthieu Moy
0 siblings, 0 replies; 2+ messages in thread
From: Matthieu Moy @ 2009-05-27 14:00 UTC (permalink / raw)
To: David Forman; +Cc: git
(please provide a Subject: line)
"David Forman" <dforman@dairyfoodusa.com> writes:
> I've encountered the following whenever I access Git and try to compress the
> database due to loose objects.
>
> error: cannot lock ref 'HEAD~'
> error: cannot lock ref 'refs/heads/collections~'
> error: cannot lock ref 'refs/heads/master~'
I'd say you've edited the files .git/HEAD, refs/heads/collections, ...
manually with a text editor that leaves ~ backup files. Unless you
_really_ have branches called collections~ and master~, you can move
these three files (in a temporary folder, or to trash if you're
confident enough).
--
Matthieu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-27 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <APEJLFBGDNOMCHGLHIHFGELBDEAA.dforman@dairyfoodusa.com>
2009-05-27 15:03 ` Error during git gc Matthieu Moy
2009-05-27 13:28 (unknown), David Forman
2009-05-27 14:00 ` Error during git gc Matthieu Moy
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).