Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

username only partially picked up from --username option #104

Open
willhains opened this issue Jan 6, 2013 · 1 comment
Open

username only partially picked up from --username option #104

willhains opened this issue Jan 6, 2013 · 1 comment

Comments

@willhains
Copy link

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:

  1. Log in with user A.
  2. 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
@ydbondt
Copy link

ydbondt commented Feb 25, 2013

Any progress on this one ?
Experiencing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants