Skip to content

Commit

Permalink
Update unannotated tags patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jbweston committed Oct 14, 2021
1 parent 1492af8 commit 0490eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unannotated-tags.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Apply this patch to "_version.py" to get Miniver to calculate the
version using unannotated tags in addition to annotated tags.
@@ -86,7 +86,7 @@ def get_version_from_git():
@@ -68,7 +68,7 @@ def get_version_from_git():
for opts in [["--first-parent"], []]:
try:
p = subprocess.Popen(
- ["git", "describe", "--long", "--always"] + opts,
+ ["git", "describe", "--long", "--always", "--tags"] + opts,
cwd=distr_root,
cwd=package_root,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,

0 comments on commit 0490eb7

Please sign in to comment.