git-svn dcommittrying to push the wrong SVN branch. Here is what I did:
git checkout -b branch_a svn/branch_a # git-svn clone prepended all remote SVN branches with svn/
git svn branch -m "a message" branch_b
git checkout -b branch_b svn/branch_b
<make some commits>
git svn dcommit
git checkout branch_a
git svn rebase
git checkout branch_b
git rebase branch_a
This is the “right” branch / merge strategy that I interpret from this StackOverflow question.
Now I'm in the brine. git svn dcommitof branch_btrying to click on the svn url for svn/branch_a. This is confirmed by the exit git svn info. This is also not what I want or expect.
Interestingly, it git log --grep='^git-svn-id:' --first-parent -1shows the correct SVN branch, the url for svn/branch_b. I read that this command should show where git-svn will be dcommit to.
So:
- What have I done wrong?
- How can I fix it (i.e. click
branch_bonsvn/branch_b
source
share