clear exportSupported for non-export remotes
Non-export remotes were being treated as untrusted, so the test suite failed, and probably other things broke.
This commit is contained in:
parent
f8fd66d3f8
commit
28ba158a24
1 changed files with 6 additions and 1 deletions
|
@ -79,7 +79,12 @@ adjustExportable r = case M.lookup "exporttree" (config r) of
|
||||||
Just "no" -> notexport
|
Just "no" -> notexport
|
||||||
Just _ -> error "bad exporttree value"
|
Just _ -> error "bad exporttree value"
|
||||||
where
|
where
|
||||||
notexport = return $ r { exportActions = exportUnsupported }
|
notexport = return $ r
|
||||||
|
{ exportActions = exportUnsupported
|
||||||
|
, remotetype = (remotetype r)
|
||||||
|
{ exportSupported = exportUnsupported
|
||||||
|
}
|
||||||
|
}
|
||||||
isexport = do
|
isexport = do
|
||||||
db <- openDb (uuid r)
|
db <- openDb (uuid r)
|
||||||
return $ r
|
return $ r
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue