I am migrating some SVN repos to Bitbucket using git svn clone. It seems that the clone fails when the revision that it is going to clone doesn't exist because the branch it affected doesn't exist anymore in Subversion.
I did
git svn clone -authors-file=authors.txt https://my.svn.com/project001 project001
The logs shows
{...}
r12 = f16b3d1014109ccd1c7e24dd70bfa9df45362e48 (refs/remotes/git-svn)
M trunk/xx.java
M trunk/xx.java
r13 = 9e61cda58fb2f5afa0a97277a10fd92365f3d1e3 (refs/remotes/git-svn)
M trunk/xx.java
M trunk/xx.java
r14 = f9964ce0a8081cf0bf22ee8a5ba32afe725323c3 (refs/remotes/git-svn)
M trunk/xx.java
r15 = ac1f5c4a61346601dd85fbca55bd585ce5fc358d (refs/remotes/git-svn)
fatal: .git\svn\refs\remotes\origin\https;C:\Program Files\Git\index: index file open failed: Invalid argument
(in cleanup) update-index -z --index-info: command returned error: 128
W: +empty_dir: branches/https:/my.svn.com/project001/branches
Exploring the SVN repo it seems that the revision #16 refers to the creation of a branch (wrongly named https:/my.svn.com/project001/branches) that doesn't exist anymore (it was deleted it revision #18).
I guess the problem is caused by this but after reading the docs and browsing SO I dind't find a way to make the git svn clone ignore this. I am looking for an automated way if possible because I have to write a script to migrate several GBs of SVN repos.