diff options
author | Guy Rouillier <guyr@burntmail.com> | 2011-05-01 01:33:52 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-01 11:42:59 -0700 |
commit | 58fdef0cff5bcf10f2621d00466b33a5b8a39bf7 (patch) | |
tree | 95b85b871c6cb6fe361ef7c0085a2d1a9df27738 /test-delta.c | |
parent | 7ed863a85a6ce2c4ac4476848310b8f917ab41f9 (diff) | |
download | git-58fdef0cff5bcf10f2621d00466b33a5b8a39bf7.tar.gz |
Look for password in both CVS and CVSNT password files.
In conn, if password is not passed on command line, look for a password
entry in both the CVS password file and the CVSNT password file. If only
one file is found and the requested repository is in that file, or if both
files are found but the requested repository is found in only one file, use
the password from the single file containing the repository entry. If both
files are found and the requested repository is found in both files, then
produce an error message.
The CVS password file separates tokens with a space character, while
the CVSNT password file separates tokens with an equal (=) character.
Add a sub find_password_entry that accepts the password file name
and a delimiter to eliminate code duplication.
Signed-off-by: Guy Rouillier <guyr@burntmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-delta.c')
0 files changed, 0 insertions, 0 deletions