summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79b4fde)
raw | patch | inline | side by side (parent: 79b4fde)
author | Pascal Obry <pascal@obry.net> | |
Fri, 4 Sep 2009 11:58:32 +0000 (13:58 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 6 Sep 2009 05:34:27 +0000 (22:34 -0700) |
Passwords stored in .cvspass are already scrambled, we do not
want to scramble them twice. Only passwords read from the
command line are scrambled.
This fixes a regression introduced by b2139db (git-cvsimport: add support
for cvs pserver password scrambling., 2009-08-14).
Signed-off-by: Pascal Obry <pascal@obry.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
want to scramble them twice. Only passwords read from the
command line are scrambled.
This fixes a regression introduced by b2139db (git-cvsimport: add support
for cvs pserver password scrambling., 2009-08-14).
Signed-off-by: Pascal Obry <pascal@obry.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl | patch | blob | history |
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 593832d813d88971aea00c8052c451f66e209830..d7411151ddbe3594431dafac46608a8f487a0263 100755 (executable)
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
}
my $rr = ":pserver:$user\@$serv:$port$repo";
- unless ($pass) {
+ if ($pass) {
+ $pass = $self->_scramble($pass);
+ } else {
open(H,$ENV{'HOME'}."/.cvspass") and do {
# :pserver:cvs@mea.tmt.tele.fi:/cvsroot/zmailer Ah<Z
while (<H>) {
};
}
- $pass = $self->_scramble($pass);
-
my ($s, $rep);
if ($proxyhost) {