]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'sb/describe-blob'
authorJunio C Hamano <gitster@pobox.com>
Tue, 27 Feb 2018 18:33:57 +0000 (10:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Feb 2018 18:33:57 +0000 (10:33 -0800)
"git describe $garbage" stopped giving any errors when the garbage
happens to be a string with 40 hexadecimal letters.

* sb/describe-blob:
  describe: confirm that blobs actually exist

1  2 
builtin/describe.c
t/t6120-describe.sh

Simple merge
index a5d901502414f25616a474152ee0f5816465bd37,50029ff6a8df6c0e11a3f5dea75905062e088b97..bae78c4e89e2402d5ab37e3b7cd094dde41d69b3
@@@ -374,8 -374,12 +374,16 @@@ test_expect_success ULIMIT_STACK_SIZE '
        test_cmp expect actual
  '
  
 +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 $_z40
+ '
  test_done