mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-05 16:18:02 +01:00
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:
@@ -831,7 +831,7 @@ def fetch_repository(name,
|
||||
clone_exists = subprocess.check_output(['git',
|
||||
'rev-parse',
|
||||
'--is-bare-repository'],
|
||||
cwd=local_dir) == "true\n"
|
||||
cwd=local_dir) == b"true\n"
|
||||
else:
|
||||
clone_exists = False
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user