Skip to content

Commit

Permalink
Honour CVS_SERVER.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Verdoolaege committed Jul 3, 2005
1 parent a92bebe commit 8d0ea31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-cvsimport-script
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,16 @@ 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();
dup2($pw->fileno(),0);
dup2($pr->fileno(),1);
$pr->close();
$pw->close();
exec("cvs","server");
exec($cvs,"server");
}
$pw->writer();
$pr->reader();
Expand Down

0 comments on commit 8d0ea31

Please sign in to comment.