Error 128 when trying to migrate SVN branches with white spaces in the name

Issue #12 new
Marcelo Filho created an issue

I'm trying migrate a SVN repository to Git. But the 128 error is showing up when the JAR is trying to migrate a SVN branch with white spaces in the name, for example:

fatal: Not a valid object name refs/remotes/Branch With White Spaces
cat-file commit refs/remotes/Branch With White Spaces: command returned error: 128

Below is the command that I'm executing to do that:

git svn clone --stdlayout --authors-file=authors.txt https://svn.repodomain.com/my/svn/repo

Thanks.

Comments (1)

  1. Jarl Ostensen Account Deactivated

    The rev-parse command is the culprit in my case;

    Time: Thu Jun 16 10:47:31 BST 2016, Command: sync-rebase, Version: 0.1.56bbc7f                                                                                                                                                                  ·
    git branch                                                                                                                                                                                                                                      ·
    * (detached from 4036472)                                                                                                                                                                                                                       ·
    git rev-parse --sq heads/(detached from 4036472)                                                                                                                                                                                                ·
    java.lang.RuntimeException: Nonzero exit value: 128                                                                                                                                                                                             ·
            at scala.sys.package$.error(package.scala:27)                                                                                                                                                                                           ·
            at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.slurp(ProcessBuilderImpl.scala:131)                                                                                                                                             ·
            at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang$bang(ProcessBuilderImpl.scala:101)                                                                                                                                        ·
            at com.atlassian.svn2git.Git.$(Utils.scala:127)                                                                                                                                                                                         ·
            at com.atlassian.svn2git.SyncRebase$$anonfun$apply$2.apply(SyncRebase.scala:31)                                                                                                                                                         ·
            at com.atlassian.svn2git.SyncRebase$$anonfun$apply$2.apply(SyncRebase.scala:30)                                                                                                                                                         ·
            at scala.collection.immutable.Stream.foreach(Stream.scala:291)                                                                                                                                                                          ·
            at com.atlassian.svn2git.SyncRebase$.apply(SyncRebase.scala:30)                                                                                                                                                                         ·
            at com.atlassian.svn2git.Main$$anonfun$7.apply(Main.scala:57)                                                                                                                                                                           ·
            at com.atlassian.svn2git.Main$$anonfun$7.apply(Main.scala:52)                                                                                                                                                                           ·
            at scala.Either.fold(Either.scala:44)                                                                                                                                                                                                   ·
            at com.atlassian.svn2git.Main$delayedInit$body.apply(Main.scala:47)                                                                                                                                                                     ·
            at scala.Function0$class.apply$mcV$sp(Function0.scala:34)                                                                                                                                                                               ·
            at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)                                                                                                                                                             ·
            at scala.App$$anonfun$main$1.apply(App.scala:60)                                                                                                                                                                                        ·
            at scala.App$$anonfun$main$1.apply(App.scala:60)                                                                                                                                                                                        ·
            at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)                                                                                                                                                       ·
            at scala.collection.immutable.List.foreach(List.scala:45)                                                                                                                                                                               ·
            at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30)                                                                                                                                           ·
            at scala.App$class.main(App.scala:60)                                                                                                                                                                                                   ·
            at com.atlassian.svn2git.Main$.main(Main.scala:22)                                                                                                                                                                                      ·
            at com.atlassian.svn2git.Main.main(Main.scala)    
    
  2. Log in to comment