Code

cvs: initialize empty password
authorClemens Buchacher <drizzd@aon.at>
Thu, 17 Sep 2009 07:21:02 +0000 (09:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2009 07:38:49 +0000 (00:38 -0700)
If we do not read a password from the command line, and there are no
passwords stored in .cvspass, we have to initialize the password with
just "A".

This fixes a regression introduced by 3fb9d582 (Do not scramble
password read from .cvspass).

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl

index d7411151ddbe3594431dafac46608a8f487a0263..1ad20ac96450d100fbce7e992ec65972a8c0a7ba 100755 (executable)
@@ -253,6 +253,7 @@ sub conn {
                                        }
                                }
                        };
+                       $pass = "A" unless $pass;
                }
 
                my ($s, $rep);