]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6120-describe.sh
describe: confirm that blobs actually exist
[thirdparty/git.git] / t / t6120-describe.sh
index 3e3fb462a098c01c72270acbb276abd2df225a66..50029ff6a8df6c0e11a3f5dea75905062e088b97 100755 (executable)
@@ -374,4 +374,12 @@ test_expect_success ULIMIT_STACK_SIZE 'describe works in a deep repo' '
        test_cmp expect actual
 '
 
+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 $_z40
+'
+
 test_done