git-cvsserver: document making a password without htpasswd
This perl snippet is useful for quickly making a password without htpasswd(1). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
May 15, 2010 at 02:46 UTC
70d5dd1f71aab4b55bf3bc3e7f5031dc655c7fdf
1 file changed
+5
Documentation/git-cvsserver.txt
+5
@@ -121,6 +121,11 @@ You can use the 'htpasswd' facility that comes with Apache to make these
121
files, but Apache's MD5 crypt method differs from the one used by most C
122
library's crypt() function, so don't use the -m option.
123
124
+Alternatively you can produce the password with perl's crypt() operator:
125
+-----
126
+ perl -e 'my ($user, $pass) = @ARGV; printf "%s:%s\n", $user, crypt($user, $pass)' $USER password
127
+-----
128
+
129
Then provide your password via the pserver method, for example:
130
------
131
cvs -d:pserver:someuser:somepassword <at> server/path/repo.git co <HEAD_name>