show in info whether a remote uses hybrid encryption or not
This commit is contained in:
parent
25574bead1
commit
5c15d6d3cc
1 changed files with 7 additions and 2 deletions
|
@ -163,5 +163,10 @@ describeEncryption :: RemoteConfig -> String
|
|||
describeEncryption c = case extractCipher c of
|
||||
Nothing -> "not encrypted"
|
||||
(Just (SharedCipher _)) -> "encrypted (encryption key stored in git repository)"
|
||||
(Just (EncryptedCipher _ _ (KeyIds { keyIds = ks }))) ->
|
||||
"encrypted (to gpg keys: " ++ unwords ks ++ ")"
|
||||
(Just (EncryptedCipher _ v (KeyIds { keyIds = ks }))) -> unwords $ catMaybes
|
||||
[ Just "encrypted (to gpg keys:"
|
||||
, Just (unwords ks ++ ")")
|
||||
, case v of
|
||||
PubKey -> Nothing
|
||||
Hybrid -> Just "(hybrid mode)"
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue