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. --- t/mda.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 't') diff --git a/t/mda.t b/t/mda.t index 755864ca..de30b125 100644 --- a/t/mda.t +++ b/t/mda.t @@ -64,6 +64,12 @@ EOF local $ENV{GIT_DIR} = $maindir; my $rev = `git rev-list HEAD`; like($rev, qr/\A[a-f0-9]{40}/, "good revision committed"); + chomp $rev; + my $cmt = `git cat-file commit $rev`; + like($cmt, qr/^author Me 0 \+0000\n/m, + "author info set correctly"); + like($cmt, qr/^committer test /m, + "committer info set correctly"); } # ensure failures work -- cgit v1.2.3-24-ge0c7