Skip to content

Commit ff8ed33

Browse files
committed
Escape glob pattern in git describe to avoid shell expansion.
1 parent 6a8dac1 commit ff8ed33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setuptools_scm/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .utils import trace
1414
from .version import meta
1515

16-
DEFAULT_DESCRIBE = "git describe --dirty --tags --long --match *[0-9]*"
16+
DEFAULT_DESCRIBE = "git describe --dirty --tags --long --match '*[0-9]*'"
1717

1818

1919
class GitWorkdir(Workdir):

0 commit comments

Comments
 (0)