Re: Issue fetching tags error: unable to find eb03b... ; git fsck shows no problem...

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

 



I can get the fetch to work, by removing refs/original in the source repo:

bash:jamesb:xl-cbga-20:32942> git fetch --tags old
remote: Counting objects: 35469, done.
remote: Compressing objects: 100% (11562/11562), done.
remote: Total 33792 (delta 18883), reused 30509 (delta 16197)
Receiving objects: 100% (33792/33792), 28.10 MiB | 8.28 MiB/s, done.
Resolving deltas: 100% (18883/18883), completed with 443 local objects.
error: unable to find eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f
fatal: object eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f not found

bash:jamesb:xl-cbga-20:32943> rm -rf ../old_tagsX/.git/refs/original/
bash:jamesb:xl-cbga-20:32944> git fetch --tags old
remote: Counting objects: 1404, done.
remote: Compressing objects: 100% (570/570), done.
remote: Total 1014 (delta 480), reused 659 (delta 233)
Receiving objects: 100% (1014/1014), 1.66 MiB, done.
Resolving deltas: 100% (480/480), completed with 195 local objects.
>From ../old_tagsX
 * [new tag]         3.2.0-5    -> 3.2.0-5
...

bash:jamesb:xl-cbga-20:32945> git show eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f
commit eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f
Author: (no author) <(no author)@e3bda1c8-b8c7-484d-b8f9-8c0514bc73ff>
Date:   Tue Oct 10 09:44:47 2006 +0000

    This commit was manufactured by cvs2svn to create tag 'releases/3_2_0-5'.
...


Note that the object was present all along!

(In old_repo I had done: git filter-branch --prune-empty -- --all)

I have a backup of the repo, and this is repeatable for me, is there
an odd interaction between fetch and refs/original?

Cheers,
James


On 7 September 2011 17:14, James Blackburn <jamesblackburn@xxxxxxxxx> wrote:
> Hi All,
>
> I've got an error I can't seem to resolve. Fsck reports both my
> repositories are OK, but git fetch --tags tells me it can't find an
> object.
>
> bash:jamesb:xl-cbga-20:32867> git --version
> git version 1.7.6
> bash:jamesb:xl-cbga-20:32864> git remote add old_tags ../old_tags/
> bash:jamesb:xl-cbga-20:32865> git fetch old_tags
> From ../old_tags
> * [new branch]      master     -> old_tags/master
> ...
> bash:jamesb:xl-cbga-20:32866> git fetch --tags old_tags
> remote: Counting objects: 33613, done.
> remote: Compressing objects: 100% (11778/11778), done.
> remote: Total 33529 (delta 18473), reused 30013 (delta 15779)
> Receiving objects: 100% (33529/33529), 28.59 MiB | 8.06 MiB/s, done.
> Resolving deltas: 100% (18473/18473), completed with 17 local objects.
> error: unable to find eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f
> fatal: object eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f not found
>
> git fsck --full shows no errors in old_tags.
> git show eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f in old_tags seems to work:
>
> commit eb03ba0f40fb2b6a3287036d851d2506e4ea4f8f
> Author: (no author) <(no author)@e3bda1c8-b8c7-484d-b8f9-8c0514bc73ff>
> Date:   Tue Oct 10 09:44:47 2006 +0000
>
>    This commit was manufactured by cvs2svn to create tag 'releases/3_2_0-5'.
>
>    git-svn-id: svn://eng-cbga-2/tools/eclipse/tags/releases/3_2_0-5@39
> e3bda1c8-b8c7-484d-b8f9-8c0514bc73ff
>
> diff --git a/org.eclipse.cdt/org.eclipse.cdt.doc.isv/reference/api/allclasses-frame.html
> b/org.eclipse.cdt/org.eclipse.cdt.doc.isv/reference/api/
> allclasses-frame.html
> ...
>
>
> Any ideas how to resolve this?
>
> Cheers,
> James
>
--
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]