]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6120-describe.sh
describe: fix matching to actually match all patterns
authorMax Kirillov <max@max630.net>
Sat, 16 Sep 2017 05:53:44 +0000 (08:53 +0300)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Sep 2017 01:21:12 +0000 (10:21 +0900)
commitda769d2986470931b8e80b8d14afcae3d7cc20d7
treedcf2d3d34e7067b2b3f1774abdfe4355efd16f50
parent77d21f29eaddb1fbe82e013ea42d4e0180bbdda2
describe: fix matching to actually match all patterns

`git describe --match` with multiple patterns matches only first pattern.
If it fails, next patterns are not tried.

Fix it, add test cases and update existing test which has wrong
expectation.

Signed-off-by: Max Kirillov <max@max630.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/describe.c
t/t6120-describe.sh