Background:
Our team needs to connect to an svn server and work on a particular branch (not the svn trunk). On top, we need to also get the trunk and merge between them.
I have set up a local git repository connected to our branch ("svn+ssh...project/branches/X").
Then, I have manually added the trunk as a new svn connection ("svn+ssh...project/trunk") (I added a new remote target for the svn trunk, to .git/config) and renamed my branches as follows:
master (connected to project/branches/X) was renamed to master-X
the branch connected to project/trunk was renamed to master-trunk.
Question:
When I git svn dcommit
on the master-X local branch, a new 'master' branch is created, with the same effect as if I did:
git svn dcommit
git co master-X -b master
Can I prevent the master branch from being recreated?
(every time it is created I delete it manually afterwards).
Edit:
My .git/config now looks like this:
# original/default configuration settings skipped for brevity
[svn-remote "svn"]
url = svn+ssh://...project/branches/X
fetch = :refs/remotes/git-svn
[svn-remote "svn-trunk"]
url = svn+ssh://...project/trunk
fetch = :refs/remotes/git-svn-trunk
The last three lines were added by me.