Issue running git-svn-mirror script on code

John Ralls jralls at
Mon Jan 21 13:35:26 EST 2013

On Jan 21, 2013, at 8:33 AM, Derek Atkins <warlord at> wrote:

> John Ralls <jralls at> writes:
>>> I did:
>>> git clone <url>
>>> git svn init --stdlayout file:///repo/gnucash-docs
>>> git-update
>>> git-svn-mirror update .
>> Yes, the [svn2git] and [svn] sections are normally set up by
>> git-svn-mirror when starting from scratch.
> So am I not supposed to add those manually?  Also, I manually changed
> some of the fetch/pull entries to change them from, e.g.:
Sorry, I wasn't clear. You're not starting from scratch, so you *do* have to add those entries.
>     fetch = +refs/heads/*:refs/remotes/origin/*
> to:
>     fetch = +refs/remotes/svn/*:refs/remotes/origin/*
That's not actually important, you're never going to pull from it. 
Did you add the line
     push = refs/remotes/svn/*:refs/heads/*

>> Yes, you should delete any [branch] sections from the mirror's config,
>> and yes, once you do that you can't run git update (or git pull or
>> fetch, for that matter) anymore. All input comes from git svn.
> Okay.  I did that in the first repo but couldn't "git pull", as you say,
> even though the error says that I should.
>> Is the receiving bare repo inited and the URL correct? 
> Yes, otherwise the initial clone wouldn't have worked ;)
>> Is this the first push to that repo?
> Yes, however the repo is not empty.  It's a clone from github.  I did:
> - clone from github into a bare repo
> - set up that bare repo in gitolite
> - clone from gitolite into a new (git-svn) repo
> - set up git svn in that git-svn repo
> - try to run git-svn-mirror in the git-svn repo
> - get error

Hmm. I'm running through the same sequence here (minus gitolite) to see if there's something I missed in the wiki instructions. It's also possible that using the same bare repo for the starting point and end point might not work.

This will take a while.

John Ralls

More information about the gnucash-devel mailing list