title: Space in branch name causing SVN to GIT migration issues
body: <p>I'm trying to migrate an old SVN repository over to GIT using <a href="https://github.com/nirvdrum/svn2git" rel="nofollow noreferrer">svn2git</a> (on my Windows box) using the following command:</p>
  
  <pre><code>svn2git https://my/svn/url --verbose --authors authors.txt
  </code></pre>
  
  <p>and things were running okay until I hit the following error:</p>
  
  <pre><code>fatal: Not a valid object name refs/remotes/svn/VS2010 Port
  cat-file commit refs/remotes/svn/VS2010 Port: command returned error: 128
  </code></pre>
  
  <p>It seems that someone (ages back) created a branch with a space in the name and this is causing havoc on the process. Running <code>git branch -a</code> shows the branch in question:</p>
  
  <pre><code>remotes/svn/VS2010%20Port
  </code></pre>
  
  <p>I did some searching around Google and StackOverflow and came across a few posts including this <a href="https://stackoverflow.com/questions/11365317/git-svn-clone-fails-fatal-not-a-valid-object-name">one</a> (although it is referring to tags). </p>
  
  <p>First I attempted the suggestion of removing the branch with <code>git branch -r -d svn/VS2010%20Port</code> (retaining this branch is not important) and then I reran my <code>svn2git</code> command. It begins running and eventually fails with the same error. I also tried removing the branch and adding the flag <code>--exclude '.*VS2010.*'</code> to my <code>svn2git</code> command but this didn't help:</p>
  
  <pre><code>svn2git https://my/svn/url --verbose --authors authors.txt --exclude '.*VS2010.*'
  </code></pre>
  
  <p>Next, I tried the other suggestion of running the <code>mv</code> command to move the file/directory with the %20 in the name to one with an actual space:</p>
  
  <pre><code>mv VS2010%20Port VS2010\ Port
  </code></pre>
  
  <p>Since my issue isn't with tags I wasn't 100% where to run this but I tried in the following locations:</p>
  
  <ul>
  <li>.git\svn\refs\remotes\svn</li>
  <li>.git\refs\remotes\svn</li>
  <li>.git\logs\refs\remotes\svn</li>
  </ul>
  
  <p>When I ran the <code>svn2git</code> command afterwards I eventually got the same issue.</p>
  
  <p>Finally I found <a href="https://stackoverflow.com/questions/33477630/migrating-svn-to-git-branches-with-white-space-in-the-names">this post</a> which is specifically about branches but the solution was to edit the <code>packed-refs</code> file and replace %20 with spaces. Although I didn't see the <code>VS2010%20Port</code> branch listed here so I could not go through with this solution.</p>
  
  <p>Does anyone have any suggestions on something I could try or something I may have missed? </p>
  
  <p><strong>Update:</strong>
  I was able to get some progress happen by adding the <code>--ignore-refs</code> flag with a regex that would match the <code>VS2010 Port</code> string. Its a large repository so it took a very long time but eventually it seemed to finish. Unfortunately, I saw no files in the directory (just the <code>.git</code> directory) so I'm assuming something went wrong. I decided to take a step back and try again fresh with the <code>git svn clone</code> command and this time I provided the <code>--ignore-refs</code> and <code>--ignore-paths</code> flags from the start. Hopefully I'll get better results this time.</p>