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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue