I have the following setup
svn repository
application
|
|-branches
| |
| |-develop-svn
|
|-trunk
local git repository
master
|
|-develop
master tracks remotes/trunk
develop tracks remotes/develop-svn
For some reason develop stopped tracking develop-svn.
When i checkout develop from master i get the following message.
$ (master) git checkout develop
Switched to branch develop
Your branch is ahead of 'develop-svn' by 59 commits.
When i try to commit to the svn repository, it tries to update the remote trunk.
$ (develop) git svn dcommit -n
Committing to https://servername/svn/application/trunk ...
...
It used to commit to https://servername/svn/application/branches/develop-svn
I already tried this command, which did not help:
$ (master) git branch --set-upstream develop develop-svn
Branch develop set up to track local refs/remotes/develop-svn.
$ (master) git checkout develop
Switched to branch develop
Your branch is ahead of 'develop-svn' by 59 commits.
$ (develop) git svn dcommit -n
Committing to https://servername/svn/application/trunk ...
...
My config looks like this
[svn-remote "svn"]
url = https://servername/svn/application
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*