summaryrefslogtreecommitdiff
path: root/Command/RecvKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-12-31 19:09:17 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-12-31 19:09:17 -0400
commit700aed13cff27f9315df1209e0cd37d5e51f5390 (patch)
tree4b28a2499293b1aea9cac2ac661a6bc68c319478 /Command/RecvKey.hs
parent30e0065ab97843f866a7fe095b8a18ee6eb4c321 (diff)
git-annex-shell now exclusively used for all remote access
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