]> source.dussan.org Git - jgit.git/commit
DescribeCommand: use glob match instead of path match 30/141730/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 30 Apr 2019 17:11:16 +0000 (19:11 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 7 Jun 2019 15:19:07 +0000 (17:19 +0200)
commit10ab407fa6414a1c4ae08696c78e078cce078519
treecb619766b8c353f8b447f6870fbae9031d73a75c
parentd2600693bd5fb8bda20bae41467132668caa1e14
DescribeCommand: use glob match instead of path match

Otherwise tags may fail to match if their name contains slashes.
Canonical git also uses its wildcard matcher in glob mode.[1]

[1] https://github.com/git/git/blob/v2.21.0/builtin/describe.c#L182

Bug: 546703
Change-Id: I122c7959974fa1fc6a53dfc65837e4314a8badd4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DescribeCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java