Issue running git-svn-mirror script on code
warlord at MIT.EDU
Mon Jan 21 11:33:24 EST 2013
John Ralls <jralls at ceridwen.us> writes:
>> I did:
>> git clone <url>
>> git svn init --stdlayout file:///repo/gnucash-docs
>> 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.:
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/remotes/svn/*:refs/remotes/origin/*
> 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
> John Ralls
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel