Hello,
I'm building an svn to git importer using JGit. I am performing branch identification on blob paths and directly converting the branch path into a branch name, like this:
trunk/src/main/java/some/package/Apple.java
Branch name:
trunk
File path :
src/main/java/some/package/Apple.java
and this:
branches/branch1/src/main/java/some/other/package/Orange.java
Branch Name:
branches_branch1
File Path:
src/main/java/some/other/package/Orange.java
There are all kinds of strange names used for the branch part (spaces, colon’s, etc) and I'm having trouble because repo.updateRef() takes them without complaint but these characters won’t pass the C *git-check-ref-format* check.
So when I clone the resultant repository or fetch newly converted branches with these invalid characters the downstream repository breaks because of the invalid ref name.
The man page for the check-ref-format is pretty clear but I wondered if there was already code in JGit that performs this verification.
Thanks,
Michael
--
Michael O’Cleirigh
Java Developer
University of Toronto