Mark string as binary in comparison for skip_existing

Found out that the flag "--skip-existing" did not work out as expected on Python
3.6. Tracked it down to the comparison which has to be against a string of bytes
in Python3.
This commit is contained in:
Johannes Bornhold
2018-02-26 11:21:25 +01:00
parent 87dab293ed
commit fd33037b1c

View File

@@ -831,7 +831,7 @@ def fetch_repository(name,
clone_exists = subprocess.check_output(['git', clone_exists = subprocess.check_output(['git',
'rev-parse', 'rev-parse',
'--is-bare-repository'], '--is-bare-repository'],
cwd=local_dir) == "true\n" cwd=local_dir) == b"true\n"
else: else:
clone_exists = False clone_exists = False
else: else: