From 66a26a8c44100fe4be59d82f3600a5c14495d49d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 20 Apr 2014 20:40:55 +0000 Subject: scripts/import_gmane_spool: set git committer date 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. --- scripts/import_gmane_spool | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') 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) } -- cgit v1.2.3-24-ge0c7