http-backend test: make empty CONTENT_LENGTH test more realistic
[gitweb.git] / t / t6120-describe.sh
index a5d901502414f25616a474152ee0f5816465bd37..84dd1cb6907d583ec4019f1bb5b949865beac6cb 100755 (executable)
@@ -378,4 +378,12 @@ check_describe tags/A --all A
 check_describe tags/c --all c
 check_describe heads/branch_A --all --match='branch_*' branch_A
 
+test_expect_success 'describe complains about tree object' '
+       test_must_fail git describe HEAD^{tree}
+'
+
+test_expect_success 'describe complains about missing object' '
+       test_must_fail git describe $ZERO_OID
+'
+
 test_done