Skip to content

Commit

Permalink
Use 'git describe --always --tags' for more robust tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Zaddach committed Sep 11, 2018
1 parent 9fb1bc5 commit d5dc9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def install(self, path, bits):

def get_plugin_git_version():
try:
return subprocess.check_output(["git", "describe", "--tags"]).split("\n")[0].strip() or "devel"
return subprocess.check_output(["git", "describe", "--always", "--tags"]).split("\n")[0].strip() or "devel"
except OSError:
return "unknown"

Expand Down

0 comments on commit d5dc9ae

Please sign in to comment.