|[jgit-dev] Is there a JGit equivalent to C git's check-ref-format?|
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:
File path :
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.
University of Toronto
Back to the top