From 922a3c5a6e9ed77a5ed31d539577dab72476dea0 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 6 May 2017 12:58:42 +0100 Subject: [PATCH] Fix remotes while updating repository --- bin/github-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/github-backup b/bin/github-backup index 469987e..30390a6 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -769,7 +769,7 @@ def fetch_repository(name, remotes = subprocess.check_output(['git', 'remote', 'show'], cwd=local_dir) - remotes = [i.strip() for i in remotes.decode('utf-8')] + remotes = [i.strip() for i in remotes.decode('utf-8').splitlines()] if 'origin' not in remotes: git_command = ['git', 'remote', 'rm', 'origin']