I am completing the conversion preparing the branches (clean up step). When I run the java clean-git script (
-jar svn-migration-scripts.jar clean-git), I get the following error. I'm running the conversion in Windows.
Could not retrieve the config for the key: svn-remote.svn.url
Any ideas on where I went wrong?
Issue was caused by cloning and changing the database before performing the clean up step. The clean up script is expecting SVN tags in the config file in .git folder. I went back to the original git svn converted repository and started over.
url = svn://localhost
fetch = MyRepo/trunk:refs/remotes/trunk
branches = MyRepo/branches/*:refs/remotes/*
tags = MyRepo/tags/*:refs/remotes/tags/*
authorsfile = c:/FooFolder/authors.txt
yes and no.
Our SVN repo had a structure like:
So I've moved the trunk/, tags/, and branches/ to a new code.git, docproejct to a doc.git and I haven't decided what to do with the releases and data yet. The releases contains binary builds that we use to deploy our application (in lieu of a package manager). Internally we need to decide if we want to carry this over to git.
Our SVN repo has a structure like:
I used to following command for git clone
git svn clone --trunk=/trunk --branches=/branch --branches=/label --branches=/private --branches=/release --authors-file=authors.txt AndroidAsGit _repo_link_to_one_project_android
The command ended successfully without any issues.
On my local Computer, I could only see the trunk code has been checked out and the remaining branches are not checked out.
When I run the command below, I get the following issue Could not retrieve the config for the key: svn-remote.svn.url
java -Dfile.encoding=utf-8 -jar D:\GitRepository\svn-migration-scripts.jar clean-git
Here is my config file
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
url = http://svn base url
fetch = MedKit/Android/trunk:refs/remotes/trunk
branches = MedKit/Android/branch/*:refs/remotes/*
branches = MedKit/Android/label/*:refs/remotes/*
branches = MedKit/Android/private/*:refs/remotes/*
branches = MedKit/Android/release/*:refs/remotes/*
authorsfile = d:/NewGitRepository/authors.txt
Can any one suggest, how can I fix this issue.
Update: Our AMA with @Serhat Can is complete! Thank you everyone for taking the time to write your questions and participate, you are the folks that make the community enriching and fun! If...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events