Merge branch 'strip_once' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
c863116011
2
setup.py
2
setup.py
@ -318,7 +318,7 @@ def get_vcs_rev_defines():
|
|||||||
ans = []
|
ans = []
|
||||||
if os.path.exists('.git'):
|
if os.path.exists('.git'):
|
||||||
try:
|
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:
|
except FileNotFoundError:
|
||||||
try:
|
try:
|
||||||
with open('.git/refs/heads/master') as f:
|
with open('.git/refs/heads/master') as f:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user