From fd33037b1ce40909320e7ce7c76481770f273780 Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Mon, 26 Feb 2018 11:21:25 +0100 Subject: [PATCH] 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. --- bin/github-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/github-backup b/bin/github-backup index 59c1968..a9e3e1c 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -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: