Skip to content

Commit 58656bc

Browse files
committed
Fix git commit retreival on Python 3.5
1 parent 8209e1f commit 58656bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def git_commitish():
8787
if v is not None:
8888
env['PATH'] = v
8989

90-
git = subprocess.run(['git', 'rev-parse', 'HEAD'], env=env, cwd=_ROOT,
91-
stdout=subprocess.PIPE)
90+
git = subprocess.run(['git', 'rev-parse', 'HEAD'], env=env,
91+
cwd=str(_ROOT), stdout=subprocess.PIPE)
9292
if git.returncode == 0:
9393
commitish = git.stdout.strip().decode('ascii')
9494
else:

0 commit comments

Comments
 (0)