Add dirty flag to git describe

This commit is contained in:
Godzil 2018-02-25 13:15:43 +00:00
parent 3ffd50fada
commit 652d64fe74
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ except ImportError:
try:
import git
r = git.repo.Repo('./')
version = r.git.describe("--tags")
version = r.git.describe("--tags", "--dirty")
except ImportError:
version = "?version unknown?"

View File

@ -6,7 +6,7 @@ from cx_Freeze import setup, Executable
r = git.repo.Repo('./')
targetName="wowviewer"
__version__ = r.git.describe("--tags")
__version__ = r.git.describe("--tags", "--dirty")
split_ver = __version__.split(".")
split_ver_last = split_ver[2].split("-")