]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7501-commit.sh
Merge branch 'mg/doc-revisions-txt'
[thirdparty/git.git] / t / t7501-commit.sh
index 8297cb4f1e6e2d903dfbf6fde825d2c787082e58..a76c47419590ed16c53b8d4d82c2d92c11853154 100755 (executable)
@@ -14,8 +14,11 @@ test_tick
 test_expect_success \
        "initial status" \
        "echo 'bongo bongo' >file &&
-        git add file && \
-        git status | grep 'Initial commit'"
+        git add file"
+
+test_expect_success C_LOCALE_OUTPUT \
+       "Constructing initial commit" \
+       "git status | grep 'Initial commit'"
 
 test_expect_success \
        "fail initial amend" \
@@ -230,6 +233,10 @@ test_expect_success 'amend commit to fix date' '
 
 '
 
+test_expect_success 'commit complains about bogus date' '
+       test_must_fail git commit --amend --date=10.11.2010
+'
+
 test_expect_success 'sign off (1)' '
 
        echo 1 >positive &&