Verified Commit 992a460c authored by mathieui's avatar mathieui

Ignore stderr when doing the git revision check

(and use the older --git-dir instead of -C)
parent eb793229
...@@ -29,8 +29,9 @@ git_dir = os.path.join(current_dir, '.git') ...@@ -29,8 +29,9 @@ git_dir = os.path.join(current_dir, '.git')
if os.path.exists(git_dir): if os.path.exists(git_dir):
try: try:
import subprocess import subprocess
result = subprocess.Popen(['git', '-C', git_dir, 'describe'], result = subprocess.Popen(['git', '--git-dir', git_dir, 'describe'],
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
result.wait() result.wait()
data ='utf-8', errors='ignore') data ='utf-8', errors='ignore')
version = '.dev' + data.split('-')[1] version = '.dev' + data.split('-')[1]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment