From dc367b090adec9f2fc5f37cba5e9b5d5f2decbce Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 14 Apr 2015 16:00:20 -0400 Subject: add missing progress bar --- Remote/Git.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Remote/Git.hs b/Remote/Git.hs index 2b2a68d05..373299c2d 100644 --- a/Remote/Git.hs +++ b/Remote/Git.hs @@ -466,7 +466,10 @@ copyFromRemoteCheap _ _ _ = return False {- Tries to copy a key's content to a remote's annex. -} copyToRemote :: Remote -> Key -> AssociatedFile -> MeterUpdate -> Annex Bool -copyToRemote r key file p +copyToRemote r key file p = parallelMetered (Just p) key $ copyToRemote' r key file + +copyToRemote' :: Remote -> Key -> AssociatedFile -> MeterUpdate -> Annex Bool +copyToRemote' r key file p | not $ Git.repoIsUrl (repo r) = guardUsable (repo r) (return False) $ commitOnCleanup r $ copylocal =<< Annex.Content.prepSendAnnex key -- cgit v1.2.3