support gcrypt remotes (assuming them to be over ssh transport)
This commit is contained in:
parent
ccfceb887c
commit
f67d5abc41
2 changed files with 6 additions and 1 deletions
|
@ -16,8 +16,11 @@ import qualified Git.Config as Config
|
|||
import qualified Git.Command as Command
|
||||
import Utility.Gpg
|
||||
|
||||
urlScheme :: String
|
||||
urlScheme = "gcrypt:"
|
||||
|
||||
urlPrefix :: String
|
||||
urlPrefix = "gcrypt::"
|
||||
urlPrefix = urlScheme ++ ":"
|
||||
|
||||
isEncrypted :: Repo -> Bool
|
||||
isEncrypted Repo { location = Url url } = urlPrefix `isPrefixOf` show url
|
||||
|
|
|
@ -9,6 +9,7 @@ module RemoteDaemon.Transport where
|
|||
|
||||
import RemoteDaemon.Types
|
||||
import qualified RemoteDaemon.Transport.Ssh
|
||||
import qualified Git.GCrypt
|
||||
|
||||
import qualified Data.Map as M
|
||||
|
||||
|
@ -18,4 +19,5 @@ type TransportScheme = String
|
|||
remoteTransports :: M.Map TransportScheme Transport
|
||||
remoteTransports = M.fromList
|
||||
[ ("ssh:", RemoteDaemon.Transport.Ssh.transport)
|
||||
, (Git.GCrypt.urlScheme, RemoteDaemon.Transport.Ssh.transport)
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue