You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the --username option to migrate a password-protected SVN repository, with a user name that doesn't match the logged-in user name. It seems that svn2git is using the --username value for some steps, but the user name of the currently logged-in user for other steps.
Steps to reproduce:
Log in with user A.
Run svn2git with option --username B (I'm using the piped password.txt method to get the password for user B into svn2git).
Expected results:
SVN authentication done using user B's credentials.
Actual results:
In verbose mode, I see "Password for 'B'" once, then later I see "Password for 'A'", and soon after the script fails.
Script output (usernames modified to protect the innocent):
user_A$ svn2git http://companySVNserver/repos/projectName/ --revision 1670 --username user_B --authors authors-transform.txt --verbose < password.txt
Running command: git svn init --prefix=svn/ --username=user_B --no-metadata --trunk=trunk --tags=tags --branches=branches http://companySVNserver/repos/projectName/
Authentication realm: <http://companySVNserver:80> Please Enter User/Password
Password for 'user_B':
Running command: git config --local svn.authorsfile authors-transform.txt
Running command: git svn fetch -r 1670:HEAD
Authentication realm: <http://companySVNserver:80> Please Enter User/Password
Password for 'user_A':
Authentication realm: <http://companySVNserver:80> Please Enter User/Password
Username: Use of uninitialized value in chomp at /usr/lib/perl5/site_perl/Git/SVN/Prompt.pm line 114.
0 [main] perl.exe" 2400 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
1258 [main] perl.exe" 2400 open_stackdumpfile: Dumping stack trace to perl.exe.stackdump
Running command: git branch -l --no-color
Running command: git branch -r --no-color
Running command: git config --local --get user.name
Running command: git config --local --get user.email
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git.
command failed:
2>&1 git checkout -f master
The text was updated successfully, but these errors were encountered:
I tried using the
--username
option to migrate a password-protected SVN repository, with a user name that doesn't match the logged-in user name. It seems that svn2git is using the--username
value for some steps, but the user name of the currently logged-in user for other steps.Steps to reproduce:
svn2git
with option--username B
(I'm using the pipedpassword.txt
method to get the password for user B into svn2git).Expected results:
Actual results:
Script output (usernames modified to protect the innocent):
The text was updated successfully, but these errors were encountered: