summaryrefslogtreecommitdiff
path: root/Command/RecvKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-28 15:41:52 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-28 15:41:52 -0400
commitb81d662cbf0036d0e2b632ed95a877feab2a4860 (patch)
tree210d8138f9cde552ebe450fbbdc2a6d6508086b2 /Command/RecvKey.hs
parent303666965ab5bc891c8ed44969553afb642c3f9c (diff)
Avoid repeated location log commits when a remote is receiving files.
Done by adding a oneshot mode, in which location log changes are written to the journal, but not committed. Taking advantage of git-annex's existing ability to recover in this situation. This is used by git-annex-shell and other places where changes are made to a remote's location log.
Diffstat (limited to 'Command/RecvKey.hs')
-rw-r--r--Command/RecvKey.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/RecvKey.hs b/Command/RecvKey.hs
index 5243fa9d4..a27a5efdf 100644
--- a/Command/RecvKey.hs
+++ b/Command/RecvKey.hs
@@ -28,7 +28,7 @@ start key = do
if ok
then do
-- forcibly quit after receiving one key,
- -- and shutdown cleanly so queued git commands run
- _ <- shutdown
+ -- and shutdown cleanly
+ _ <- shutdown True
liftIO exitSuccess
else liftIO exitFailure