From 66a26a8c44100fe4be59d82f3600a5c14495d49d Mon Sep 17 00:00:00 2001
From: Eric Wong <e@80x24.org>
Date: Sun, 20 Apr 2014 20:40:55 +0000
Subject: [PATCH] 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(+)

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) }
 
-- 
2.50.0