From df07ccf404bf6a950fe0a0a31f315486c510a2f0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 23 Sep 2012 13:27:13 -0400 Subject: make the assistant retry failed transfers When a transfer fails, the progress info can be used to intelligently retry it. If the transfer managed to make some progress, but did not fully complete, then there's a good chance that a retry will finish it (or at least make more progress). --- Remote/Git.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Remote/Git.hs') diff --git a/Remote/Git.hs b/Remote/Git.hs index a1c5b24b4..e7b1ca0e8 100644 --- a/Remote/Git.hs +++ b/Remote/Git.hs @@ -247,7 +247,7 @@ copyFromRemote r key file dest liftIO $ onLocal r $ do ensureInitialized loc <- inRepo $ gitAnnexLocation key - upload u key file $ + upload u key file noRetry $ rsyncOrCopyFile params loc dest | Git.repoIsSsh r = feedprogressback $ \feeder -> rsyncHelper (Just feeder) @@ -317,7 +317,7 @@ copyToRemote r key file p ( return False , do ensureInitialized - download u key file $ + download u key file noRetry $ Annex.Content.saveState True `after` Annex.Content.getViaTmp key (\d -> rsyncOrCopyFile params keysrc d p) -- cgit v1.2.3