clean-git barfs on SVN repos without branches
Issue #3
new
clean-git barfs after a recent git svn clone (following https://www.atlassian.com/git/tutorials/migrating-convert):
$ cd /storage/GitMigration/git
$ java -Dfile.encoding=utf-8 -jar ../svn-migration-scripts.jar clean-git
Could not retrieve the config for the key: svn-remote.svn.branches
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[svn-remote "svn"]
url = file:///storage/svn
fetch = :refs/remotes/git-svn
[svn]
authorsfile = /storage/GitMigration/authors.txt
Hmmmm... nothing looks extremely wrong here. The svn repo doesn't use the standard layout, but it also doesn't have branches. The command used to do the git svn clone was:
$ cd /storage/GitMigration
$ git svn clone --authors-file=authors.txt file:///storage/svn git
This is on Fedora 20, using:
- java-1.7.0-openjdk-1.7.0.65-2.5.2.5.fc20.x86_64
- git-1.9.3-1.fc20.x86_64
- git-svn-1.9.3-1.fc20.x86_64
- subversion-1.8.10-1.fc20.x86_64
Any ideas how to run clean-git (eg to process tags), without it erroring-out on the lack of branches?
Comments (3)
-
-
reporter Awesome thinking, thanks.
I'll be having to do this again in the near future, so that'll be very useful to get the whole process working. :D
-
I just got here and the branch = doesn't help.
facepalm
https://stackoverflow.com/questions/34620655/svn-git-migration-clean-git-branch-error
[svn-remote "svn"] tags =
- Log in to comment
I got the same error for the same reason (no branches migrated). As a workaround, I simply added an empty "branches" key under [svn-remote "svn"] configuration section. Something like this:
Works perfectly.