Skip to content

Rebase fails when subversion library has a number in its branches/ directory #106

Open
@jsdalton

Description

@jsdalton

At least that was my diagnosis when I looked at this briefly. It seems like git is getting confused by the ambiguity of "1.4".

$ svn2git --rebase --verbose
Running command: git status --porcelain --untracked-files=no
Running command: git branch -l --no-color
* (no branch)
  1.4
  6.3.2
  master
Running command: git branch -r --no-color
  origin/master
  svn/1.4
  svn/6.3.2
  svn/tags/6.3.4
  svn/tags/6.4
  svn/trunk
Running command: git svn fetch
Running command: git checkout -f "1.4"
warning: refname '1.4' is ambiguous.
Switched to branch '1.4'
Running command: git rebase "remotes/svn/1.4"
warning: refname '1.4' is ambiguous.
First, rewinding head to replay your work on top of it...
error: Ref refs/heads/1.4 is at 945bb2b34ec0a6bba7ae71bb91684005c44470a1 but expected a487bb4a0fccd87a1ecbd0d05720da97391037d0
fatal: Cannot lock the ref 'refs/heads/1.4'.
Could not move back to refs/heads/1.4
command failed:
2>&1 git rebase "remotes/svn/1.4"

This is for a github mirror I have for a Wordpress plugin in the Wordpress SVN repository. This is the repository directory that's giving me difficulty: http://plugins.svn.wordpress.org/google-analyticator/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions