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

3 messages from 2009-12-03 to 2009-12-06. Participants: Stephen Bannasch, Eric Wong.
Thread: https://gitlist.dev/t/21850

## Stephen Bannasch, 2009-12-03 21:00

Subject: svn svn returning 'fatal: Not a valid object name' on sourceforge svn repo
Message-ID: <p0624081ac73dd6a1aaff@[63.138.152.192]>
URL: https://gitlist.dev/e/p0624081ac73dd6a1aaff%40%5B63.138.152.192%5D

```
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, 2009-12-05 22:49

Subject: Re: svn svn returning 'fatal: Not a valid object name' on sourceforge svn repo
Message-ID: <20091205224950.GC2120@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20091205224950.GC2120%40dcvr.yhbt.net
In-Reply-To: <p0624081ac73dd6a1aaff@[63.138.152.192]>

```
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
>
> 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, 2009-12-06 17:49

Subject: Re: svn svn returning 'fatal: Not a valid object name' on sourceforge svn repo
Message-ID: <p06240802c7419ec49cd5@[192.168.1.106]>
URL: https://gitlist.dev/e/p06240802c7419ec49cd5%40%5B192.168.1.106%5D
In-Reply-To: <20091205224950.GC2120@dcvr.yhbt.net>

```
At 2:49 PM -0800 12/5/09, Eric Wong wrote:
>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?

```
