Re: How to fetch missing pack

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

 



Hi Peter,

Peter Baumann <waste.manager@xxxxxx> wrote:
> On Sat, Apr 12, 2008 at 12:07:12PM +0000, Jörg Sommer wrote:
>> I'm missing a pack. My history of the git repository is broken:
>> % git show --pretty=raw e0fda6ab|head -7
>> commit e0fda6abd11c567b72f29ec0ee06c541404a9cb7
>> tree 77a7e4a849bbec646d88ae863f80ea3f519e26bd
>> parent 1ab58e8d6f728cdde0057f7ee88daab3a1c2d06f
>> author Wincent Colaiuta <win@xxxxxxxxxxx> 1196066088 +0100
>> committer Junio C Hamano <gitster@xxxxxxxxx> 1196109124 -0800
>> 
>>     Fix typo in draft 1.5.4 release notes
>> % git log --pretty=oneline e0fda6ab | wc -l
>> 1
>> % git show e0fda6ab~1|cat
>> fatal: ambiguous argument 'e0fda6ab~1': unknown revision or path not in the working tree.
>> Use '--' to separate paths from revisions
>> 
>> Can I somehow tell git fetch to check the whole history for holes and
>> fetch missing packs?
>> 
>> Bye, Jörg.
>
> Try using git fsck --full to check you repo. If you are missing some
> objects, you could just grab them from another valid repo which still has
> them.

How can I exctract single objects from a pack?

> (e.g. copy all packs/objects from the other repo into yours and then do
> a git-repack -a -d -f)

This didn't work. I've cloned my git repo and copied the pack into
packs/objects without the .keep file and removed objects/info/packs.
After that I ran repack -a -d -f, but nothing changed. I still can't
access the parent of e0fda6ab. What else can I do?

Bye, Jörg.
-- 
The social dynamics of the net are a direct consequence of the fact
that nobody has yet developed a Remote Strangulation Protocol.
            (Larry Wall)
--
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]

  Powered by Linux