Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion py/makeversionhdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ def get_version_info_from_git(repo_path):
# Note: git describe doesn't work if no tag is available
try:
git_tag = subprocess.check_output(
["git", "describe", "--tags", "--dirty", "--always", "--match", "v[1-9].*"],
[
"git",
"describe",
"--tags",
"--dirty",
"--always",
"--match",
"v[1-9].*",
"--abbrev=10",
],
cwd=repo_path,
stderr=subprocess.STDOUT,
universal_newlines=True,
Expand Down
Loading