From 5335b4edc67513354c723d51d4f9a7a99cf144c4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 10 Mar 2013 17:54:27 -0400 Subject: copyToRemote should return True when the remote already has the key This got broken in commit e9238e958877dff9d12a5a0ed396e93931de95ce. I observed a key that had been copied to a remote, but the location log was out of date, and due to this bug, git annex transferkey failed and so the file could not be dropped when it was moved to an archive directory. --- Remote/Git.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Remote/Git.hs') diff --git a/Remote/Git.hs b/Remote/Git.hs index d39e0afe2..0d7d2a988 100644 --- a/Remote/Git.hs +++ b/Remote/Git.hs @@ -355,7 +355,7 @@ copyToRemote r key file p u <- getUUID -- run copy from perspective of remote liftIO $ onLocal (repo r) $ ifM (Annex.Content.inAnnex key) - ( return False + ( return True , do ensureInitialized download u key file noRetry $ -- cgit v1.2.3