This commit is contained in:
Kovid Goyal 2019-06-23 07:36:21 +05:30
parent 96703c23c8
commit ff89c1d8e4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -313,7 +313,7 @@ def get_vcs_rev_defines():
rev = f.read()
except NotADirectoryError:
gitloc = open('.git').read()
with open(os.path.join(gitloc, '/refs/heads/master')) as f:
with open(os.path.join(gitloc, 'refs/heads/master')) as f:
rev = f.read()
ans.append('KITTY_VCS_REV="{}"'.format(rev.strip()))