gitweb: use Perl built-in utf8 function for UTF-8 decoding.
[gitweb.git] / t / t7501-commit.sh
index 2e7bcb016ac94f150423446b2fbce2d61eb7bced..0316ecf5a16792f226725eb9626ad77c369877bb 100755 (executable)
@@ -256,6 +256,13 @@ test_expect_success 'same tree (single parent)' '
 
 '
 
+test_expect_success 'same tree (single parent) --allow-empty' '
+
+       git commit --allow-empty -m "forced empty" &&
+       git cat-file commit HEAD | grep forced
+
+'
+
 test_expect_success 'same tree (merge and amend merge)' '
 
        git checkout -b side HEAD^ &&