mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat
This commit is contained in:
parent
9cbb81edf5
commit
27f483dce4
@ -74,7 +74,7 @@ def build_cache_dir():
|
|||||||
|
|
||||||
|
|
||||||
def require_git_master(branch='master'):
|
def require_git_master(branch='master'):
|
||||||
if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).strip() != branch:
|
if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).decode('utf-8').strip() != branch:
|
||||||
raise SystemExit('You must be in the {} git branch'.format(branch))
|
raise SystemExit('You must be in the {} git branch'.format(branch))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user