diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-23 13:27:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-23 13:27:13 -0400 |
commit | df07ccf404bf6a950fe0a0a31f315486c510a2f0 (patch) | |
tree | a7188982ebb24b9ca0122c7516143c5089aef197 /Remote/Git.hs | |
parent | d4055b3dd2999a75381c4cae2ed30a7dcd32d3f2 (diff) |
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).
Diffstat (limited to 'Remote/Git.hs')
-rw-r--r-- | Remote/Git.hs | 4 |
1 files changed, 2 insertions, 2 deletions
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) |