Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed importing code from SVN to GIT - SVN trunk is empty

Tags:

git

c#

.net

svn

I try to clone my SVN (assembla) repository to GIT one (bitbucket)

I used bitbucket wizard importing code from SVN to GIT online

But I got the following error:

23:58:39 svn import for: https://subversion.assembla.com/svn/ugisvn/trunk
23:58:39 Checking out https://subversion.assembla.com/svn/ugisvn/trunk...
23:58:40 A elad2109/elad2109/bb_tmp
23:58:40 Exported revision 59.
23:58:40 Done
23:58:40 Subversion checkout successful
23:58:40 Creating new git repository...
23:58:40 Initialized empty Git repository in elad2109/elad2109/bb_tmp/.git/
23:58:40 Done
23:58:40 Done
23:58:40 # On branch master
23:58:40 #
23:58:40 # Initial commit
23:58:40 #
23:58:40 nothing to commit (create/copy files and use "git add" to track)
23:58:40 Unable to convert svn checkout to git
23:58:40 Svn checkout failed: <class 'bitbucket.apps.async.tasks.ImportException'>: Command failed. Return value: 1

But how can I fix it?

Solved:

My two problems were solved:

  1. missing Author - I had to verify my registartion email to bitbucket.org

  2. empty trunk - I just gave one higher level of SVN repository

like image 403
Elad Benda2 Avatar asked Mar 09 '12 21:03

Elad Benda2


2 Answers

Solved my two problems:

missing Author - I had to verify my registartion email to bitbucket.org

empty trunck - just gave one higher level of SVN repository

like image 57
Elad Benda2 Avatar answered Oct 15 '22 19:10

Elad Benda2


Try using the command line. You must fiddle with your authors file. Basically for any "No existing author found" you must add a none entry in your authors.txt file

elad2109 = none <[email protected]>

Here's a good tutorial on manual migration: http://taombo.com/taombo-blog/moving-your-svn-repositories-to-git-on-bitbucket

Regards, Zeno.

like image 44
Zeno Popovici Avatar answered Oct 15 '22 18:10

Zeno Popovici