From 0db21f64f5e9a53185674badfcf5776c1ad964b3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Apr 2014 22:42:38 +0000 Subject: mda: set GIT_AUTHOR_DATE in commits as well While we're at it, write some quick tests. --- public-inbox-mda | 1 + 1 file changed, 1 insertion(+) (limited to 'public-inbox-mda') diff --git a/public-inbox-mda b/public-inbox-mda index 14017f68..411ac15f 100755 --- a/public-inbox-mda +++ b/public-inbox-mda @@ -52,6 +52,7 @@ if (PublicInbox->precheck($filter, $recipient) && defined $email or $email = ""; local $ENV{GIT_AUTHOR_NAME} = $name; local $ENV{GIT_AUTHOR_EMAIL} = $email; + local $ENV{GIT_AUTHOR_DATE} = $simple->header("Date"); local $ENV{GIT_COMMITTER_EMAIL} = $recipient; local $ENV{GIT_COMMITTER_NAME} = $dst->{listname}; -- cgit v1.2.3-24-ge0c7