threads / discuss / 21850

svn svn returning 'fatal: Not a valid object name' on sourceforge svn repo

Subject: svn svn returning 'fatal: Not a valid object name' on sourceforge svn repo

## tl;dr

3 messages between Dec 3, 2009 and Dec 6, 2009.

replies: 2people: 2as markdown or json

Stephen Bannasch· Dec 3, 2009, 21:00 UTC · lore
I use git svn often and normally it works fine.
I getting a fatal error trying to clone the asciimathm svn repo at sourceforge:

$ git svn clone --trunk=trunk --branches=branches http://asciimathml.svn.sourceforge.net/svnroot/asciimathml asciimathml-svn-git fatal: Not a valid object name ls-tree -z ./: command returned error: 128

Anybody seen this kind of problem before.
A svn co works fine.
I'm using git version 1.6.5.1 on mac os 10.5.8.
Eric Wong· Dec 5, 2009, 22:49 UTC · re: Stephen Bannasch · lore

Re: svn svn returning 'fatal: Not a valid object name' on sourceforge svn repo

Stephen Bannasch <stephen.bannasch@deanbrook.org> wrote:
Show 13 quoted lines
> I use git svn often and normally it works fine.
>
> I getting a fatal error trying to clone the asciimathm svn repo at sourceforge:
>
> $ git svn clone --trunk=trunk --branches=branches http://asciimathml.svn.sourceforge.net/svnroot/asciimathml asciimathml-svn-git
> fatal: Not a valid object name
> ls-tree -z  ./: command returned error: 128
>
> Anybody seen this kind of problem before.
>
> A svn co works fine.
>
> I'm using git version 1.6.5.1 on mac os 10.5.8.
Hi Stephen,

Passing the "-r4:HEAD" parameter to "git svn clone" should work. It looks like the repository was initially miscreated and "trunk" was a symlink (and not a directory) in r1.

I have not yet thought of a good solution to this, yet...
-- 
Eric Wong
Stephen Bannasch· Dec 6, 2009, 17:49 UTC · re: Eric Wong · lore

Re: svn svn returning 'fatal: Not a valid object name' on sourceforge svn repo

At 2:49 PM -0800 12/5/09, Eric Wong wrote:
Show 12 quoted lines
>Stephen Bannasch <stephen.bannasch@deanbrook.org> wrote:
>> I use git svn often and normally it works fine.
>>
>> I getting a fatal error trying to clone the asciimathm svn repo at sourceforge:
>>
>> $ git svn clone --trunk=trunk --branches=branches http://asciimathml.svn.sourceforge.net/svnroot/asciimathml asciimathml-svn-git
>> fatal: Not a valid object name
> > ls-tree -z  ./: command returned error: 128
>
>Passing the "-r4:HEAD" parameter to "git svn clone" should work.  It
>looks like the repository was initially miscreated and "trunk" was a
>symlink (and not a directory) in r1.
Thanks Eric, your suggestion worked.
How could you tell the first svn commit was a symlink?

← back to recent threads