# git-svn error

4 messages from 2010-09-23 to 2010-09-24. Participants: Nate Parsons, Michael J Gruber.
Thread: https://gitlist.dev/t/25209

## Nate Parsons, 2010-09-23 14:30

Subject: git-svn error
Message-ID: <AANLkTi=5ficziLK8cfikotoxkgUDLfhAM_RLzCOcOv5U@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3D5ficziLK8cfikotoxkgUDLfhAM_RLzCOcOv5U%40mail.gmail.com

```
Hi all,

I'm experiencing an error message importing a new svn repository using
cygwin git, version 1.7.2.3

> fatal: refs/remotes/trunk: not a valid SHA1
> update-ref refs/heads/master refs/remotes/trunk: command returned error: 128

My .git/config file (nothing looks amiss to me):
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	ignorecase = true
[svn-remote "svn"]
	url = <redacted>
	fetch = iem/procedures/iem:refs/remotes/trunk
	branches = iem/procedures/Z_Folders/*:refs/remotes/*

It appears that this error was seen before in an older version that
didn't deal with extra "/"s appropriately, but I don't see that issue
here.

Thanks,
-Nate

```

## Nate Parsons, 2010-09-23 19:45

Subject: Re: git-svn error
Message-ID: <AANLkTi=KGtBJ=6-YWUJCsbmBWfnr1Kh2i=LaZmgM=8t5@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DKGtBJ%3D6-YWUJCsbmBWfnr1Kh2i%3DLaZmgM%3D8t5%40mail.gmail.com
In-Reply-To: <AANLkTi=5ficziLK8cfikotoxkgUDLfhAM_RLzCOcOv5U@mail.gmail.com>

```
Hi all,

I reproduced the problem on openSUSE, running git 1.7.3. I can't
provide access to the subversion repository, but I can do anything
else to help diagnose the problem.

-Nate

On Thu, Sep 23, 2010 at 10:30 AM, Nate Parsons <parsons.nate@gmail.com> wrote:
> Hi all,
>
> I'm experiencing an error message importing a new svn repository using
> cygwin git, version 1.7.2.3
>
>> fatal: refs/remotes/trunk: not a valid SHA1
>> update-ref refs/heads/master refs/remotes/trunk: command returned error: 128
>
> My .git/config file (nothing looks amiss to me):
> [core]
>        repositoryformatversion = 0
>        filemode = true
>        bare = false
>        logallrefupdates = true
>        ignorecase = true
> [svn-remote "svn"]
>        url = <redacted>
>        fetch = iem/procedures/iem:refs/remotes/trunk
>        branches = iem/procedures/Z_Folders/*:refs/remotes/*
>
> It appears that this error was seen before in an older version that
> didn't deal with extra "/"s appropriately, but I don't see that issue
> here.
>
> Thanks,
> -Nate
>

```

## Michael J Gruber, 2010-09-24 07:28

Subject: Re: git-svn error
Message-ID: <4C9C530D.3040206@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4C9C530D.3040206%40drmicha.warpmail.net
In-Reply-To: <AANLkTi=KGtBJ=6-YWUJCsbmBWfnr1Kh2i=LaZmgM=8t5@mail.gmail.com>

```
Nate Parsons venit, vidit, dixit 23.09.2010 21:45:
> Hi all,
> 
> I reproduced the problem on openSUSE, running git 1.7.3. I can't
> provide access to the subversion repository, but I can do anything
> else to help diagnose the problem.

How about providing some context of that error message, i.e. a
transaction log? Also: Is this from a fresh repo?

Michael

```

## Nate Parsons, 2010-09-24 20:33

Subject: Re: git-svn error
Message-ID: <AANLkTikMsXhAJUU6tgcjMGdq2FGmgW3dXY_SS8=iMu2v@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikMsXhAJUU6tgcjMGdq2FGmgW3dXY_SS8%3DiMu2v%40mail.gmail.com
In-Reply-To: <4C9C530D.3040206@drmicha.warpmail.net>

```
On Fri, Sep 24, 2010 at 3:28 AM, Michael J Gruber
<git@drmicha.warpmail.net> wrote:
>
> Nate Parsons venit, vidit, dixit 23.09.2010 21:45:
> > Hi all,
> >
> > I reproduced the problem on openSUSE, running git 1.7.3. I can't
> > provide access to the subversion repository, but I can do anything
> > else to help diagnose the problem.
>
> How about providing some context of that error message, i.e. a
> transaction log? Also: Is this from a fresh repo?

I'd be glad to do this, as long as nobody can use these logs to
recreate the contents of my repository. What commands do I run?

This is happening in a fresh repo, I do the 'git svn init' first, and
then 'git svn fetch $head' (where $head is actually a number). This is
to work around my other git issue that hasn't gotten a response.

I was able to fetch the entire repository using a combination of
TortoiseGit (for the initial init and fetch, until it died with a file
permissions error) and then fetch the rest of my history with msysgit,
so this isn't a show-stopping issue for me.

-Nate

```
