X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-cvsexportcommit.perl;h=c93bd9c9b553f18b29e72a08176588d889e7acde;hb=325abb7b1a5bf47b53e3ae1b585f11ebd6a9fea9;hp=b6036bd4d305215b4a70b6fd0fe54d7607dbe068;hpb=824b5dc29cfe4f58d052d2d9273b39d34bf018e0;p=git.git diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index b6036bd4d..c93bd9c9b 100755 --- a/git-cvsexportcommit.perl +++ b/git-cvsexportcommit.perl @@ -6,6 +6,7 @@ use File::Temp qw(tempdir); use Data::Dumper; use File::Basename qw(basename dirname); use File::Spec; +use Git; our ($opt_h, $opt_P, $opt_p, $opt_v, $opt_c, $opt_f, $opt_a, $opt_m, $opt_d, $opt_u, $opt_w); @@ -15,6 +16,10 @@ $opt_h && usage(); die "Need at least one commit identifier!" unless @ARGV; +# Get git-config settings +my $repo = Git->repository(); +$opt_w = $repo->config('cvsexportcommit.cvsdir') unless defined $opt_w; + if ($opt_w) { # Remember where GIT_DIR is before changing to CVS checkout unless ($ENV{GIT_DIR}) {