* error: refs/tags/2.0.9 does not point to a valid object!
@ 2010-10-18 19:23 Mathieu Malaterre
2010-10-18 20:31 ` Stephen Bash
0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Malaterre @ 2010-10-18 19:23 UTC (permalink / raw)
To: git
Hi there,
I am trying to convert a SVN repository to GIT. After the conversion
I tried to do some cleanups (git plumbing):
$ git filter-branch --prune-empty -f --tree-filter 'find . -type f -a
\( -name \*.txx -o -name \*.cxx -o -name \*.h -o -name \*.dtd -o -name
\*.dtd -o -name \*.xsd -o -name \*.txt -o -name \*.rc -o -name
\*.linux \) -exec sudo dos2unix -p {} \;' --tag-name-filter cat --
--all
The filter ran for a couple of hours. But after the conversion I get
the following:
Initialized empty Git repository in /tmp/bla/.git/
remote: Counting objects: 59368, done.
remote: Compressing objects: 100% (25408/25408), done.
remote: Total 59368 (delta 43461), reused 44204 (delta 33809)
Receiving objects: 100% (59368/59368), 14.40 MiB | 14.27 MiB/s, done.
Resolving deltas: 100% (43461/43461), done.
error: refs/tags/2.0.9 does not point to a valid object!
error: refs/tags/2.0.8 does not point to a valid object!
error: refs/tags/2.0.7 does not point to a valid object!
error: refs/tags/2.0.6 does not point to a valid object!
error: refs/tags/2.0.5 does not point to a valid object!
error: refs/tags/2.0.4 does not point to a valid object!
error: refs/tags/2.0.16 does not point to a valid object!
error: refs/tags/2.0.15 does not point to a valid object!
error: refs/tags/2.0.14 does not point to a valid object!
error: refs/tags/2.0.13 does not point to a valid object!
error: refs/tags/2.0.12 does not point to a valid object!
error: refs/tags/2.0.11 does not point to a valid object!
error: refs/tags/2.0.10 does not point to a valid object!
Could someone please let me know what I am doing wrong in my script
in filter-branch.
Thanks a bunch !
--
Mathieu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error: refs/tags/2.0.9 does not point to a valid object!
2010-10-18 19:23 error: refs/tags/2.0.9 does not point to a valid object! Mathieu Malaterre
@ 2010-10-18 20:31 ` Stephen Bash
2010-10-19 11:15 ` Mathieu Malaterre
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Bash @ 2010-10-18 20:31 UTC (permalink / raw)
To: Mathieu Malaterre; +Cc: git
----- Original Message -----
> From: "Mathieu Malaterre" <mathieu.malaterre@gmail.com>
> To: git@vger.kernel.org
> Sent: Monday, October 18, 2010 3:23:57 PM
> Subject: error: refs/tags/2.0.9 does not point to a valid object!
>
> I am trying to convert a SVN repository to GIT.
>
> The filter ran for a couple of hours. But after the conversion I get
> the following:
>
> Initialized empty Git repository in /tmp/bla/.git/
> remote: Counting objects: 59368, done.
> remote: Compressing objects: 100% (25408/25408), done.
> remote: Total 59368 (delta 43461), reused 44204 (delta 33809)
> Receiving objects: 100% (59368/59368), 14.40 MiB | 14.27 MiB/s, done.
> Resolving deltas: 100% (43461/43461), done.
> error: refs/tags/2.0.9 does not point to a valid object!
> error: refs/tags/2.0.8 does not point to a valid object!
> error: refs/tags/2.0.7 does not point to a valid object!
> error: refs/tags/2.0.6 does not point to a valid object!
> error: refs/tags/2.0.5 does not point to a valid object!
> error: refs/tags/2.0.4 does not point to a valid object!
> error: refs/tags/2.0.16 does not point to a valid object!
> error: refs/tags/2.0.15 does not point to a valid object!
> error: refs/tags/2.0.14 does not point to a valid object!
> error: refs/tags/2.0.13 does not point to a valid object!
> error: refs/tags/2.0.12 does not point to a valid object!
> error: refs/tags/2.0.11 does not point to a valid object!
> error: refs/tags/2.0.10 does not point to a valid object!
>
> Could someone please let me know what I am doing wrong in my script
> in filter-branch.
Yep, I ran into the exact same problem. Short answer, move/remove the refs/original directory before cloning, and the issue should go away.
http://kerneltrap.org/mailarchive/git/2010/8/20/37441
There was also a proposed test case:
http://kerneltrap.org/mailarchive/git/2010/9/7/39119
HTH,
Stephen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error: refs/tags/2.0.9 does not point to a valid object!
2010-10-18 20:31 ` Stephen Bash
@ 2010-10-19 11:15 ` Mathieu Malaterre
0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Malaterre @ 2010-10-19 11:15 UTC (permalink / raw)
To: Stephen Bash; +Cc: git
On Mon, Oct 18, 2010 at 10:31 PM, Stephen Bash <bash@genarts.com> wrote:
>
>
> ----- Original Message -----
>> From: "Mathieu Malaterre" <mathieu.malaterre@gmail.com>
>> To: git@vger.kernel.org
>> Sent: Monday, October 18, 2010 3:23:57 PM
>> Subject: error: refs/tags/2.0.9 does not point to a valid object!
>>
>> I am trying to convert a SVN repository to GIT.
>>
>> The filter ran for a couple of hours. But after the conversion I get
>> the following:
>>
>> Initialized empty Git repository in /tmp/bla/.git/
>> remote: Counting objects: 59368, done.
>> remote: Compressing objects: 100% (25408/25408), done.
>> remote: Total 59368 (delta 43461), reused 44204 (delta 33809)
>> Receiving objects: 100% (59368/59368), 14.40 MiB | 14.27 MiB/s, done.
>> Resolving deltas: 100% (43461/43461), done.
>> error: refs/tags/2.0.9 does not point to a valid object!
>> error: refs/tags/2.0.8 does not point to a valid object!
>> error: refs/tags/2.0.7 does not point to a valid object!
>> error: refs/tags/2.0.6 does not point to a valid object!
>> error: refs/tags/2.0.5 does not point to a valid object!
>> error: refs/tags/2.0.4 does not point to a valid object!
>> error: refs/tags/2.0.16 does not point to a valid object!
>> error: refs/tags/2.0.15 does not point to a valid object!
>> error: refs/tags/2.0.14 does not point to a valid object!
>> error: refs/tags/2.0.13 does not point to a valid object!
>> error: refs/tags/2.0.12 does not point to a valid object!
>> error: refs/tags/2.0.11 does not point to a valid object!
>> error: refs/tags/2.0.10 does not point to a valid object!
>>
>> Could someone please let me know what I am doing wrong in my script
>> in filter-branch.
>
> Yep, I ran into the exact same problem. Short answer, move/remove the refs/original directory before cloning, and the issue should go away.
>
> http://kerneltrap.org/mailarchive/git/2010/8/20/37441
>
> There was also a proposed test case:
>
> http://kerneltrap.org/mailarchive/git/2010/9/7/39119
This was indeed the problem. Just a simple rm -rf .git/refs/original/*
and original issue is gone.
Thank you so much !
--
Mathieu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-19 11:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-18 19:23 error: refs/tags/2.0.9 does not point to a valid object! Mathieu Malaterre
2010-10-18 20:31 ` Stephen Bash
2010-10-19 11:15 ` Mathieu Malaterre
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).