aboutsummaryrefslogtreecommitdiff
path: root/Git/GCrypt.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-17 16:06:29 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-17 16:06:29 -0400
commit2f47bbdbe03f25ae293b5b5aa3ab944ebebf5d4f (patch)
treeb0d0edfc02bfda428ac6030aa2229628a9d4e8ee /Git/GCrypt.hs
parent2442281e413cd52f40bedb6a40a67d0e4461bf39 (diff)
gcrypt: Ensure that signing key is set to one of the participants keys.
Otherwise gcrypt will fail to pull, since it requires this to be the case. This needs a patched gcrypt, which is in my forked version.
Diffstat (limited to 'Git/GCrypt.hs')
-rw-r--r--Git/GCrypt.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Git/GCrypt.hs b/Git/GCrypt.hs
index 18d8fa771..1260c2ced 100644
--- a/Git/GCrypt.hs
+++ b/Git/GCrypt.hs
@@ -74,5 +74,8 @@ getParticiantList globalconfigrepo repo remotename = KeyIds $ parse $ firstJust
remoteParticipantConfigKey :: RemoteName -> String
remoteParticipantConfigKey = remoteConfigKey "gcrypt-participants"
+remoteSigningKey :: RemoteName -> String
+remoteSigningKey = remoteConfigKey "gcrypt-signingkey"
+
remoteConfigKey :: String -> RemoteName -> String
remoteConfigKey key remotename = "remote." ++ remotename ++ "." ++ key