summaryrefslogtreecommitdiff
path: root/Command/RecvKey.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/RecvKey.hs')
-rw-r--r--Command/RecvKey.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Command/RecvKey.hs b/Command/RecvKey.hs
index 3232010d4..840b32861 100644
--- a/Command/RecvKey.hs
+++ b/Command/RecvKey.hs
@@ -34,5 +34,9 @@ start keyname = do
ok <- getViaTmp key (liftIO . rsyncServerReceive)
if ok
- then return Nothing
+ then do
+ -- forcibly quit after receiving one key,
+ -- and shutdown cleanly so queued git commands run
+ _ <- shutdown 0
+ liftIO exitSuccess
else liftIO exitFailure