diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-02-14 20:42:27 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-14 20:42:27 (GMT) |
commit | 3bba763373a5d0e5fcbe37a5f54a16f9b7f2e7b5 (patch) | |
tree | 503faf861d2e6c4545251cc1c62c4264f9c929e9 /t | |
parent | 0ad714499976290d9a0229230cbe4efae930b8dc (diff) | |
parent | 5c4f55f1f62b64f530bd135e5b248ceba7b95708 (diff) | |
download | git-3bba763373a5d0e5fcbe37a5f54a16f9b7f2e7b5.zip git-3bba763373a5d0e5fcbe37a5f54a16f9b7f2e7b5.tar.gz git-3bba763373a5d0e5fcbe37a5f54a16f9b7f2e7b5.tar.bz2 |
Merge branch 'hw/commit-advise-while-rejecting' into maint
"git commit" gives output similar to "git status" when there is
nothing to commit, but without honoring the advise.statusHints
configuration variable, which has been corrected.
* hw/commit-advise-while-rejecting:
commit: honor advice.statusHints when rejecting an empty commit
Diffstat (limited to 't')
-rwxr-xr-x | t/t7500-commit-template-squash-signoff.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t7500-commit-template-squash-signoff.sh b/t/t7500-commit-template-squash-signoff.sh index 46a5cd4..6d19ece 100755 --- a/t/t7500-commit-template-squash-signoff.sh +++ b/t/t7500-commit-template-squash-signoff.sh @@ -382,4 +382,13 @@ test_expect_success 'check commit with unstaged rename and copy' ' ) ' +test_expect_success 'commit without staging files fails and displays hints' ' + echo "initial" >file && + git add file && + git commit -m initial && + echo "changes" >>file && + test_must_fail git commit -m update >actual && + test_i18ngrep "no changes added to commit (use \"git add\" and/or \"git commit -a\")" actual +' + test_done |