Browse Source

Honour CVS_SERVER.

maint
Sven Verdoolaege 20 years ago
parent
commit
8d0ea31175
  1. 4
      git-cvsimport-script

4
git-cvsimport-script

@ -148,6 +148,8 @@ sub conn {
my $pw = IO::Pipe->new(); my $pw = IO::Pipe->new();
my $pid = fork(); my $pid = fork();
die "Fork: $!\n" unless defined $pid; die "Fork: $!\n" unless defined $pid;
my $cvs = 'cvs';
$cvs = $ENV{CVS_SERVER} if exists $ENV{CVS_SERVER};
unless($pid) { unless($pid) {
$pr->writer(); $pr->writer();
$pw->reader(); $pw->reader();
@ -155,7 +157,7 @@ sub conn {
dup2($pr->fileno(),1); dup2($pr->fileno(),1);
$pr->close(); $pr->close();
$pw->close(); $pw->close();
exec("cvs","server"); exec($cvs,"server");
} }
$pw->writer(); $pw->writer();
$pr->reader(); $pr->reader();

Loading…
Cancel
Save