Skip to content

Commit fd33037

Browse files
committed
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.
1 parent 87dab29 commit fd33037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/github-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def fetch_repository(name,
831831
clone_exists = subprocess.check_output(['git',
832832
'rev-parse',
833833
'--is-bare-repository'],
834-
cwd=local_dir) == "true\n"
834+
cwd=local_dir) == b"true\n"
835835
else:
836836
clone_exists = False
837837
else:

0 commit comments

Comments
 (0)