fix handling of importtree-only remotes
Don't want to try to use these remotes as key/value remotes, which will surely fail. It only recently became possible for importtree to be set w/o exporttree, so before this code was ok. (cherry picked from commit 97599cb0f7f4115aa5a3e81a91ee3d1d6c52dc84)
This commit is contained in:
parent
e9db382308
commit
f62aee0525
4 changed files with 8 additions and 3 deletions
|
@ -210,8 +210,9 @@ seek' o = do
|
|||
let gitremotes = filter (Remote.gitSyncableRemoteType . Remote.remotetype) remotes
|
||||
dataremotes <- filter (\r -> Remote.uuid r /= NoUUID)
|
||||
<$> filterM (not <$$> liftIO . getDynamicConfig . remoteAnnexIgnore . Remote.gitconfig) remotes
|
||||
let (exportremotes, keyvalueremotes) = partition (exportTree . Remote.config) dataremotes
|
||||
let (exportremotes, nonexportremotes) = partition (exportTree . Remote.config) dataremotes
|
||||
let importremotes = filter (importTree . Remote.config) dataremotes
|
||||
let keyvalueremotes = partition (not . importTree . Remote.config) nonexportremotes
|
||||
|
||||
if cleanupOption o
|
||||
then do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue