summaryrefslogtreecommitdiff
path: root/t/t7501-commit.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t7501-commit.sh')
-rwxr-xr-xt/t7501-commit.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index d58b097ff3..5a76823d4c 100755
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
@@ -346,6 +346,11 @@ test_expect_success 'amend commit to fix date' '
'
+test_expect_success 'commit mentions forced date in output' '
+ git commit --amend --date=2010-01-02T03:04:05 >output &&
+ grep "Date: *Sat Jan 2 03:04:05 2010" output
+'
+
test_expect_success 'commit complains about bogus date' '
test_must_fail git commit --amend --date=10.11.2010
'