nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

using --username and --passord not working as expected #195

Open casmer opened 9 years ago

casmer commented 9 years ago

Two things I found on Ubuntu 14.04 LTS.

  1. If you use just --username when the prompt comes up you have to hit Enter then your password, then enter again. The first enter at the prompt should not be required.
  2. if you provide the --password option it says it does not work.
RomanVolak commented 9 years ago

I have the same problems. Test with http://argopdf.tigris.org/svn/argopdf/trunk and username guest and password '' (empty): svn2git http://argopdf.tigris.org/svn/argopdf/trunk --rootistrunk --username guest --password '' not known option password. Without option password : Password for 'guest': (ENTER) no reaction. I have build gitversion from source with gem build svn2git.gemspec && gem install svn2git-version.gem on Lubuntu 15.04

Thanks a lot Roman

garyStofer commented 9 years ago

I can confirm the findings of casmer on Kubuntu 15.04 as well.

There is no --password option in the migrate.rb file If you do as casmer says by pressing enter first then the password then enter again it works -- How the heck did you figure that out ?

bhushan154 commented 9 years ago

Same issue. Is there a fix?

garyStofer commented 9 years ago

The trick with the first hitting a blank return , then the password followed by a return again seems to work .

From: Bhushan Nagaraj Sent: Tuesday, July 07, 2015 2:54 PM To: nirvdrum/svn2git Cc: Gary Stofer Subject: Re: [svn2git] using --username and --passord not working as expected (#195)

Same issue. Is there a fix?

— Reply to this email directly or view it on GitHub.

Gl4di4torRr commented 8 years ago

same issue. Is there a fix in progress?

/usr/lib/ruby/1.8/optparse.rb:1450:in complete': invalid option: --password (OptionParser::InvalidOption) from /usr/lib/ruby/1.8/optparse.rb:1448:incatch' from /usr/lib/ruby/1.8/optparse.rb:1448:in complete' from /usr/lib/ruby/1.8/optparse.rb:1261:inparse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1254:in catch' from /usr/lib/ruby/1.8/optparse.rb:1254:inparse_in_order' from /usr/lib/ruby/1.8/optparse.rb:1248:in order!' from /usr/lib/ruby/1.8/optparse.rb:1339:inpermute!' from /usr/lib/ruby/1.8/optparse.rb:1360:in parse!' from /usr/lib/ruby/gems/1.8/gems/svn2git-2.3.2/lib/svn2git/migration.rb:146:inparse' from /usr/lib/ruby/gems/1.8/gems/svn2git-2.3.2/lib/svn2git/migration.rb:14:in initialize' from /usr/lib/ruby/gems/1.8/gems/svn2git-2.3.2/bin/svn2git:26:innew' from /usr/lib/ruby/gems/1.8/gems/svn2git-2.3.2/bin/svn2git:26 from /usr/bin/svn2git:19:in `load' from /usr/bin/svn2git:19

Gl4di4torRr commented 8 years ago

A workaround for this right now: yes PASS | svn2git SVN_URL --username USER

Zitrax commented 8 years ago

I had the same issue with the blank when entering the password.

In addition I got unknown option: password when it ran the subcommand git svn init if I passed --password to svn2git.

Gl4di4torRr commented 8 years ago

@Zitrax have you tried my solution above?

Zitrax commented 8 years ago

@Gl4di4torRr After I checked out an svn repo elsewhere the svn2git script stop complaining so I didn't persue it further.

Gl4di4torRr commented 8 years ago

:+1:

jacobwwang commented 7 years ago

@Gl4di4torRr thanks re: "yes PASS | svn2git SVN_URL --username USER" it works for me

smehdux commented 3 years ago

A workaround for this right now: yes PASS | svn2git SVN_URL --username USER

Thanks, you saved my day :)

ibaoger commented 2 years ago
gem uninstall svn2git
gem install svn2git3
SVN2GIT_PASSWORD=<<password>> svn2git http://svn.example.com/path/to/repo --username <<user_with_perms>>

this issue has resolved by @jesteves, I pushed it to rubygems.