simplify annex.stalldetection handling
RemoteGitConfig parsing looks for annex.stalldetection when a remote does not have a per-remote config for it, so no need for a separate gobal config. Sponsored-by: Noam Kremen on Patreon
This commit is contained in:
parent
55b405a965
commit
4fef94d764
3 changed files with 12 additions and 21 deletions
|
@ -24,7 +24,6 @@ import Assistant.Alert
|
|||
import Assistant.Alert.Utility
|
||||
import Assistant.Commits
|
||||
import Assistant.Drop
|
||||
import Annex.Transfer (stallDetection)
|
||||
import Types.Transfer
|
||||
import Logs.Transfer
|
||||
import Logs.Location
|
||||
|
@ -126,7 +125,8 @@ genTransfer t info = case transferRemote info of
|
|||
( do
|
||||
debug [ "Transferring:" , describeTransfer t info ]
|
||||
notifyTransfer
|
||||
sd <- liftAnnex $ stallDetection remote
|
||||
let sd = remoteAnnexStallDetection
|
||||
(Remote.gitconfig remote)
|
||||
return $ Just (t, info, go remote sd)
|
||||
, do
|
||||
debug [ "Skipping unnecessary transfer:",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue