diff options
Diffstat (limited to 'git_command.py')
-rw-r--r-- | git_command.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git_command.py b/git_command.py index 04953f38..95db91f2 100644 --- a/git_command.py +++ b/git_command.py | |||
@@ -75,7 +75,8 @@ def RepoSourceVersion(): | |||
75 | proj = os.path.dirname(os.path.abspath(__file__)) | 75 | proj = os.path.dirname(os.path.abspath(__file__)) |
76 | env[GIT_DIR] = os.path.join(proj, '.git') | 76 | env[GIT_DIR] = os.path.join(proj, '.git') |
77 | result = subprocess.run([GIT, 'describe', HEAD], stdout=subprocess.PIPE, | 77 | result = subprocess.run([GIT, 'describe', HEAD], stdout=subprocess.PIPE, |
78 | encoding='utf-8', env=env, check=False) | 78 | stderr=subprocess.DEVNULL, encoding='utf-8', |
79 | env=env, check=False) | ||
79 | if result.returncode == 0: | 80 | if result.returncode == 0: |
80 | ver = result.stdout.strip() | 81 | ver = result.stdout.strip() |
81 | if ver.startswith('v'): | 82 | if ver.startswith('v'): |