From: Sven Verdoolaege Date: Sun, 3 Jul 2005 10:26:51 +0000 (+0200) Subject: Honour CVS_SERVER. X-Git-Tag: v0.99~71^2^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8d0ea3117597933610e02907d14b443f8996ca3b;p=git.git Honour CVS_SERVER. --- diff --git a/git-cvsimport-script b/git-cvsimport-script index dffd134e..c514d14c 100755 --- a/git-cvsimport-script +++ b/git-cvsimport-script @@ -148,6 +148,8 @@ sub conn { my $pw = IO::Pipe->new(); my $pid = fork(); die "Fork: $!\n" unless defined $pid; + my $cvs = 'cvs'; + $cvs = $ENV{CVS_SERVER} if exists $ENV{CVS_SERVER}; unless($pid) { $pr->writer(); $pw->reader(); @@ -155,7 +157,7 @@ sub conn { dup2($pr->fileno(),1); $pr->close(); $pw->close(); - exec("cvs","server"); + exec($cvs,"server"); } $pw->writer(); $pr->reader();