From f09776746122b83d4f7f4503aa3967e3580708db Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 10 Jun 2013 20:42:13 +0200 Subject: version: show if working copy is dirty --- version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/version.py b/version.py index a4c7ed6..498ce51 100644 --- a/version.py +++ b/version.py @@ -21,7 +21,8 @@ OWN_DIR = os.path.dirname(os.path.abspath(os.path.realpath(__file__))) def call_git_describe(abbrev=4): try: - p = Popen(['git', 'describe', '--abbrev=%d' % abbrev, '--tags'], + p = Popen(['git', 'describe', '--abbrev=%d' % abbrev, + '--tags', '--dirty'], cwd=OWN_DIR, stdout=PIPE, stderr=PIPE) p.stderr.close() line = p.stdout.readlines()[0] -- cgit v1.2.3-1-g7c22