files-backend: delete dead code in files_init_db()
[gitweb.git] / t / t6120-describe.sh
index 9e5db9b87a1faef912adaf460fc2d0ea7f375f50..167491fd5b0d0c5ed3744c51cd0f05723c9f964b 100755 (executable)
@@ -218,6 +218,14 @@ test_expect_success 'describe --contains and --match' '
        test_cmp expect actual
 '
 
+test_expect_success 'describe --exclude' '
+       echo "c~1" >expect &&
+       tagged_commit=$(git rev-parse "refs/tags/A^0") &&
+       test_must_fail git describe --contains --match="B" $tagged_commit &&
+       git describe --contains --match="?" --exclude="A" $tagged_commit >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success 'describe --contains and --no-match' '
        echo "A^0" >expect &&
        tagged_commit=$(git rev-parse "refs/tags/A^0") &&