From: Emil Medve <Emilian.Medve@Freescale.com>
To: gitster@pobox.com, git@vger.kernel.org
Cc: Emil Medve <Emilian.Medve@Freescale.com>
Subject: [PATCH v2] git-cvsimport: Add support for CVSNT as an underlying client
Date: Thu, 13 Mar 2008 12:45:18 -0500 [thread overview]
Message-ID: <1205430318-4067-1-git-send-email-Emilian.Medve@Freescale.com> (raw)
CVSNT seems to feature the following relevant differences from classic CVS:
1. Keeps the password information in ~/.cvs/cvspass instead of ~/.cvspass
2. Used '=' to separate fields in cvspass instead of ' '
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
---
git-cvsimport.perl | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 95c5eec..90bd6cc 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -238,12 +238,13 @@ sub conn {
my $rr = ":pserver:$user\@$serv:$port$repo";
unless ($pass) {
- open(H,$ENV{'HOME'}."/.cvspass") and do {
+ (open(H,$ENV{'HOME'}."/.cvspass") or
+ open(H,$ENV{'HOME'}."/.cvs/cvspass")) and do {
# :pserver:cvs@mea.tmt.tele.fi:/cvsroot/zmailer Ah<Z
while (<H>) {
chomp;
s/^\/\d+\s+//;
- my ($w,$p) = split(/\s/,$_,2);
+ my ($w,$p) = split(/\s|=/,$_,2);
if ($w eq $rr or $w eq $rr2) {
$pass = $p;
last;
--
1.5.4.GIT
reply other threads:[~2008-03-13 17:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1205430318-4067-1-git-send-email-Emilian.Medve@Freescale.com \
--to=emilian.medve@freescale.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).