svn2git: Problem connection to password protected SVN repo

Hi,

I’m trying to convert an SVN repo to git. The SVN repo sits on my home server which I have aliased in my hosts file to svnserver. When I run this command:

svn://svnserver/qkschool.org.uk -v --username markstickley

it just sits there showing only the following output:

Running command: git svn init --prefix=svn/ --username=markstickley --no-metadata --trunk=trunk --tags=tags --branches=branches svn://svnserver/qkschool.org.uk
Initialized empty Git repository in /Users/markstickley/workspace/qkschool.org.uk/.git/
Authentication realm: <svn://svnserver:3690> 2d1a41b5-b418-457c-9cb5-d753d313de4d

I left it along for hours in case it was doing something. Nada. When I press ctrl+c I get this, if it’s any help:

/Users/markstickley/.rvm/gems/ruby-1.9.2-p320/gems/svn2git-2.2.1/lib/svn2git/migration.rb:295:in `each': Interrupt
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/gems/svn2git-2.2.1/lib/svn2git/migration.rb:295:in `block in run_command'
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/gems/svn2git-2.2.1/lib/svn2git/migration.rb:294:in `popen'
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/gems/svn2git-2.2.1/lib/svn2git/migration.rb:294:in `run_command'
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/gems/svn2git-2.2.1/lib/svn2git/migration.rb:178:in `clone!'
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/gems/svn2git-2.2.1/lib/svn2git/migration.rb:27:in `run!'
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/gems/svn2git-2.2.1/bin/svn2git:26:in `<top (required)>'
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/bin/svn2git:23:in `load'
    from /Users/markstickley/.rvm/gems/ruby-1.9.2-p320/bin/svn2git:23:in `<main>'

Thanks!

About this issue

  • Original URL
  • State: open
  • Created 12 years ago
  • Comments: 44 (4 by maintainers)

Most upvoted comments

I managed to get this working by running it in verbose mode -v and then when it prompts for the Authentication realm, entering my password. However I needed to enter it twice, as it appears to ignore the first one.

There is a fork of svn2git called svn2gitnet that solves this issue that is a complete rewrite. It works on windows, mac and linux. Find out about svn2gitnet here

I may have found a workaround:

  • install subversion
  • checkout a project with your username and save the password locally: svn co http://... --username=...
  • invoke svn2git without the --username option