handle importtree=yes config
For now, it's only allowed when exporttree=yes is also set. That simplified the implementation, but could later be changed if there's a remote that makes sense to be an import but not an export. However, it may work just as well to make a remote be readonly to prevent export to it while still allowing import.
This commit is contained in:
parent
5f17a9cc50
commit
aaacf431d8
7 changed files with 72 additions and 29 deletions
|
@ -20,6 +20,7 @@ module Types.Remote
|
|||
, unVerified
|
||||
, RetrievalSecurityPolicy(..)
|
||||
, isExportSupported
|
||||
, isImportSupported
|
||||
, ExportActions(..)
|
||||
, ImportActions(..)
|
||||
, ByteSize
|
||||
|
@ -215,6 +216,9 @@ data RetrievalSecurityPolicy
|
|||
isExportSupported :: RemoteA a -> a Bool
|
||||
isExportSupported r = exportSupported (remotetype r) (config r) (gitconfig r)
|
||||
|
||||
isImportSupported :: RemoteA a -> a Bool
|
||||
isImportSupported r = importSupported (remotetype r) (config r) (gitconfig r)
|
||||
|
||||
data ExportActions a = ExportActions
|
||||
-- Exports content to an ExportLocation.
|
||||
-- The exported file should not appear to be present on the remote
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue