avoid sync --content trying to sendKey to exporttree remotes

This commit is contained in:
Joey Hess 2019-03-11 14:09:46 -04:00
parent 057999f0fc
commit 28e46d947a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -171,7 +171,7 @@ seek o = allowConcurrentOutput $ do
let gitremotes = filter Remote.gitSyncableRemote remotes let gitremotes = filter Remote.gitSyncableRemote remotes
dataremotes <- filter (\r -> Remote.uuid r /= NoUUID) dataremotes <- filter (\r -> Remote.uuid r /= NoUUID)
<$> filterM (not <$$> liftIO . getDynamicConfig . remoteAnnexIgnore . Remote.gitconfig) remotes <$> filterM (not <$$> liftIO . getDynamicConfig . remoteAnnexIgnore . Remote.gitconfig) remotes
let exportremotes = filter (exportTree . Remote.config) dataremotes let (exportremotes, keyvalueremotes) = partition (exportTree . Remote.config) dataremotes
let importremotes = filter (importTree . Remote.config) dataremotes let importremotes = filter (importTree . Remote.config) dataremotes
if cleanupOption o if cleanupOption o
@ -199,7 +199,7 @@ seek o = allowConcurrentOutput $ do
exportedcontent <- withbranch $ exportedcontent <- withbranch $
seekExportContent (Just o) exportremotes seekExportContent (Just o) exportremotes
syncedcontent <- withbranch $ syncedcontent <- withbranch $
seekSyncContent o dataremotes seekSyncContent o keyvalueremotes
-- Transferring content can take a while, -- Transferring content can take a while,
-- and other changes can be pushed to the -- and other changes can be pushed to the
-- git-annex branch on the remotes in the -- git-annex branch on the remotes in the