From 642d71471dbf025d8c67986fe682f3bbb3f069e7 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Mon, 24 Feb 2020 12:19:45 +0100 Subject: [PATCH] Prevent download attempt that is known to fail --- git-remote-rclone | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-remote-rclone b/git-remote-rclone index 89b8992..3b7332c 100755 --- a/git-remote-rclone +++ b/git-remote-rclone @@ -129,6 +129,9 @@ class RCloneRemote(object): # in case we never sync'ed, obtain the ID info prior download # so we have it, whenever the download succeeded repo_hashes = self.get_remote_state() + if repo_hashes is None: + # there is nothing at the remote end + return sync_dir = self.workdir / 'sync' self.log('Downloading repository archive') subprocess.run([