This commit is contained in:
Kovid Goyal 2019-06-27 05:18:04 +05:30
commit c863116011
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -318,7 +318,7 @@ def get_vcs_rev_defines():
ans = []
if os.path.exists('.git'):
try:
rev = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip()
rev = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8')
except FileNotFoundError:
try:
with open('.git/refs/heads/master') as f: