diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2005-07-04 17:10:06 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2005-07-04 17:10:06 +0200 |
commit | 28537171e7ec23c8677ea6e77c208583f95caa28 (patch) | |
tree | ca80ed2fad05b150984c14a5364dac8d3e307120 /git-cvsimport-script | |
parent | 6e7e37b0bfc921aa1f0cb30560fc128e87a41966 (diff) | |
download | git-28537171e7ec23c8677ea6e77c208583f95caa28.tar.gz git-28537171e7ec23c8677ea6e77c208583f95caa28.tar.xz |
git-cvsimport-script: provide direct support for cvsps -z option
Diffstat (limited to 'git-cvsimport-script')
-rwxr-xr-x | git-cvsimport-script | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/git-cvsimport-script b/git-cvsimport-script index 62df91666..9773891b5 100755 --- a/git-cvsimport-script +++ b/git-cvsimport-script @@ -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(); @@ -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"; } |