# [PATCH] add a test for "describe --contains" with mixed tags

1 messages from 2017-10-19 to 2017-10-19. Participants: orgads@gmail.com.
Thread: https://gitlist.dev/t/47000

## orgads@gmail.com, 2017-10-19 19:55

Subject: [PATCH] add a test for "describe --contains" with mixed tags
Message-ID: <20171019195501.28622-1-orgads@gmail.com>
URL: https://gitlist.dev/e/20171019195501.28622-1-orgads%40gmail.com

```
From: Orgad Shaneh <orgads@gmail.com>

---
 t/t6120-describe.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/t/t6120-describe.sh b/t/t6120-describe.sh
index 1c0e865..08427f4 100755
--- a/t/t6120-describe.sh
+++ b/t/t6120-describe.sh
@@ -340,4 +340,20 @@ test_expect_success ULIMIT_STACK_SIZE 'describe works in a deep repo' '
 	test_cmp expect actual
 '
 
+test_expect_success 'describe --contains for light before annotated' '
+	test_tick &&
+	git commit --allow-empty -m First &&
+	test_tick &&
+	git commit --allow-empty -m Second &&
+	test_tick &&
+	git commit --allow-empty -m Third &&
+	test_tick &&
+	git tag light-before-annotated HEAD^ &&
+	test_tick &&
+	git tag -a -m annotated annotated-after-light
+
+'
+
+check_describe light-before-annotated~1 --contains light-before-annotated~1
+
 test_done
-- 
1.9.1


```
