nirvdrum / svn2git

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

svn2git Unknown option: password #237

Open dzhyw opened 7 years ago

dzhyw commented 7 years ago

hi,all: i have a problem:

svn2git http://xxx/svn/android --no-minimize-url -v --username xxx --password xxx --rootistrunk --authors /usr/local/users.txt

Running command: git svn init --prefix=svn/ --username='xxx' --password='xxx' --no-metadata --no-minimize-url --trunk='http://xxx/svn/android' Unknown option: password command failed: git svn init --prefix=svn/ --username='xxx' --password='xxx' --no-metadata --no-minimize-url --trunk='http://xxx/svn/android'

how to fix it ? it's code bug? Online waiting to be resolved,thanks

Oruss7 commented 7 years ago

yes YourPassword | git svn ... --username YourUsername

mazong1123 commented 7 years ago

--password is not supported by git svn. Other than pipe in the password to the git svn, you can try my new implementation of svn2git which fixed this issue: https://github.com/mazong1123/svn2gitnet

temoctzin commented 5 years ago

I fix it using git svn without --password tag! but first must install perl-term_readkey

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.