git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
James Blackburn <jamesblackburn@gmail.com>
Date
Sep 7, 2011, 16:30 UTC
Message-ID
<CACyv8dfopPtqWxMYwx3wGipc8+v7iPJO4+Esjk51kGuN8BSwuA@mail.gmail.com>
In-Reply-To
<CACyv8dcTi0pG_GPvxD1zoTf6iRG81KbaY43FA-pbxYJz2UVJcQ@mail.gmail.com>
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@gmail.com> wrote:
Show 45 quoted lines
> 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
>
Previous: James Blackburn
Message 2 of 2 in “Issue fetching tags error: unable to find eb03b... ; git fsck shows no problem...”
  1. James BlackburnSep 7, 2011
  2. James BlackburnSep 7, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.