Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-07-28 19:45:21 +0300
committerJunio C Hamano <gitster@pobox.com>2023-07-28 19:45:21 +0300
commit3085f949bf4aafe04dac7441308bb769ccf9c351 (patch)
treebf95004a4a6f7c1836c455231d93282dce5f8f51 /t
parentc8a33b44c5a56c7b2c7778506acdc71e5365ec1f (diff)
parentc95ae3ff9cdcbe6229dc3aa4cd7aa14b1354759a (diff)
Merge branch 'rs/describe-parseopt-fix'
Command line parser fix. * rs/describe-parseopt-fix: describe: fix --no-exact-match
Diffstat (limited to 't')
-rwxr-xr-xt/t6120-describe.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t6120-describe.sh b/t/t6120-describe.sh
index c9afcef201..0a5c487540 100755
--- a/t/t6120-describe.sh
+++ b/t/t6120-describe.sh
@@ -85,6 +85,7 @@ check_describe e-1-gHASH --tags HEAD^^
check_describe c-2-gHASH --tags HEAD^^2
check_describe B --tags HEAD^^2^
check_describe e --tags HEAD^^^
+check_describe e --tags --exact-match HEAD^^^
check_describe heads/main --all HEAD
check_describe tags/c-6-gHASH --all HEAD^
@@ -96,6 +97,13 @@ check_describe A-3-gHASH --long HEAD^^2
check_describe c-7-gHASH --tags
check_describe e-3-gHASH --first-parent --tags
+check_describe c-7-gHASH --tags --no-exact-match HEAD
+check_describe e-3-gHASH --first-parent --tags --no-exact-match HEAD
+
+test_expect_success '--exact-match failure' '
+ test_must_fail git describe --exact-match HEAD 2>err
+'
+
test_expect_success 'describe --contains defaults to HEAD without commit-ish' '
echo "A^0" >expect &&
git checkout A &&