mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
.strip() only once
`ans.append('KITTY_VCS_REV="{}"'.format(rev.strip()))` strips the whitespace again later.
This commit is contained in:
parent
6bb78c9499
commit
5cbd591a1e
2
setup.py
2
setup.py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user