We're currently trying to migrate a huge SVN repository Git (Atlassian Stash) using the guide at https://www.atlassian.com/git/migration.
However, we ran into the problem that the process stopped after about 3000 revisions with the following error:
Found possible branch point: https://svn/repo/trunk -> https://svn/repo/tags/T a g with Spaces , 3018 W: Refspec glob conflict (ref: refs/remotes/trunk): expected path: branches trunk real path: trunk Continuing ahead with trunk [this block is shown 6 times] fatal: Not a validobject name refs/remotes/tags/T a g with Spaces cat-file commit refs/remotes/tags/T a g with Spaces: command returned error: 128
Unfortunately we are not able to rename branches/tags in SVN - is there any workaround / or even a fix you could provide? This is stopping us from migrating many of our legacy projects to the Atlassian Stash platform.
I might have got the error above mentioned when running the command under the following link:
Please, replace the suggest in the same command.
There is no space in the repository name I could replace, the space is in a SVN tag name.
My command looks like:
git svn clone --stdlayout --authors-file=authors.txt https://svn/repo RepoAsGit
Sorry, maybe it is my fault, however, I don't see where to insert your suggested replacement.
Please, have a look to the command below (Non-standard SVN layouts) the one you have ran by following the Migrate to Git from SVN documentation.
Non-standard SVN layouts
If your SVN repository doesn’t have a standard layout, you need to provide the locations of your trunk, branches, and tags using the --trunk, --branches, and --tags command line options. For example, if you have branches stored in both the /branches directory and the /bugfixes directories, you would use the following command:
git svn clone --trunk=/trunk --branches=/branches --branches=/bugfixes --tags=/tags --authors-file=authors.txt <svn-repo>/<project> <git-repo-name>
This is the Git version I have used to test the issue raised:
$ git --version git version 220.127.116.11
Thank you, but this doesn't solve the problem. Our repository format follows all the standard guidelines of SVN repository structuring (i.e. trunk, branches, tags folders).
The problem is that one of the tags contains a space, which prevents the tool from properly migrating.
I have the same problem with my migration.... ( see https://answers.atlassian.com/questions/303875/migration-git-stash-fails-on-spaces-in-tag-name)
any luck so far with the suggestion from Rafael?
No, the suggestions of Rafael are pointing into a completely different direction. We switched our tooling to svn2git which had no problems converting our repository. The Atlassian tool is now just used to obtain the list of authors.
(note: the list of authors had not been complete, however, after svn2git breaks, edit the list and restart it - svn2git can carry on from the point it stopped)
We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...
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