Skip to content

Commit

Permalink
git-cvsimport-script: provide direct support for cvsps -z option
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Verdoolaege committed Jul 4, 2005
1 parent 6e7e37b commit 2853717
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions git-cvsimport-script
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ use POSIX qw(strftime dup2);
$SIG{'PIPE'}="IGNORE";
$ENV{'TZ'}="UTC";

our($opt_h,$opt_o,$opt_v,$opt_d,$opt_p,$opt_C);
our($opt_h,$opt_o,$opt_v,$opt_d,$opt_p,$opt_C,$opt_z);

sub usage() {
print STDERR <<END;
Usage: ${\basename $0} # fetch/update GIT from CVS
[ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
[ -p opts-for-cvsps ] [ -C GIT_repository ]
[ -o branch-for-HEAD ] [ -h ] [ -v ] [ -d CVSROOT ]
[ -p opts-for-cvsps ] [ -C GIT_repository ] [ -z fuzz ]
[ CVS_module ]
END
exit(1);
}

getopts("hqvo:d:p:C:") or usage();
getopts("hqvo:d:p:C:z:") or usage();
usage if $opt_h;

@ARGV <= 1 or usage();
Expand Down Expand Up @@ -436,6 +436,7 @@ die "Cannot fork: $!\n" unless defined $pid;
unless($pid) {
my @opt;
@opt = split(/,/,$opt_p) if defined $opt_p;
unshift @opt, '-z', $opt_z if defined $opt_z;
exec("cvsps",@opt,"-u","-A","--cvs-direct",'--root',$opt_d,$cvs_tree);
die "Could not start cvsps: $!\n";
}
Expand Down

0 comments on commit 2853717

Please sign in to comment.