diff options
author | Eric Wong <e@80x24.org> | 2014-04-20 20:40:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-20 20:40:55 +0000 |
commit | 66a26a8c44100fe4be59d82f3600a5c14495d49d (patch) | |
tree | 2adff2d2fba6232c157fc71c8a45750eb4b1e0a3 | |
parent | cd195aaa6552b44385417827842d34f27fc84224 (diff) | |
download | public-inbox-66a26a8c44100fe4be59d82f3600a5c14495d49d.tar.gz |
We normally want committer date to be different so we may track delivery latencies (which do not differ much). However, the rules for importing are much different and tend to screw things up when using time ranges with git-rev-list.
-rwxr-xr-x | scripts/import_gmane_spool | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/import_gmane_spool b/scripts/import_gmane_spool index d96c26c8..e072b810 100755 --- a/scripts/import_gmane_spool +++ b/scripts/import_gmane_spool @@ -41,6 +41,9 @@ foreach my $n (sort { $a <=> $b } grep(/\d+\z/, glob("*"))) { $s->header_set("Original-Received"); } + # this is needed for "git rev-list --since=..." to work + local $ENV{GIT_COMMITTER_DATE} = $s->header('Date'); + # triggers for the SA HEADER_SPAM rule foreach my $drop (qw(Approved)) { $s->header_set($drop) } |