Re: Error during git gc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(please, keep the Git list in copy, and don't top-post)

"David Forman" <dforman@xxxxxxxxxxxxxxxx> 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@xxxxxxx]
> Sent: Wednesday, May 27, 2009 9:00 AM
> To: David Forman
> Cc: git@xxxxxxxxxxxxxxx
> Subject: Re: Error during git gc
>
>
> (please provide a Subject: line)
>
> "David Forman" <dforman@xxxxxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]