about summary refs log tree commit diff
path: root/third_party/git/t/t7500-commit-template-squash-signoff.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t7500-commit-template-squash-signoff.sh')
-rwxr-xr-xthird_party/git/t/t7500-commit-template-squash-signoff.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/git/t/t7500-commit-template-squash-signoff.sh b/third_party/git/t/t7500-commit-template-squash-signoff.sh
index 46a5cd4b73..6d19ece05d 100755
--- a/third_party/git/t/t7500-commit-template-squash-signoff.sh
+++ b/third_party/git/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