fetch: Speed up fetch of large numbers of refs
[gitweb.git] / git-cvsimport.perl
index 593832d813d88971aea00c8052c451f66e209830..d7411151ddbe3594431dafac46608a8f487a0263 100755 (executable)
@@ -238,7 +238,9 @@ sub conn {
                }
                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>) {
@@ -253,8 +255,6 @@ sub conn {
                        };
                }
 
-               $pass = $self->_scramble($pass);
-
                my ($s, $rep);
                if ($proxyhost) {