diff options
author | Joey Hess <joey@kitenet.net> | 2012-01-28 15:41:52 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-01-28 15:41:52 -0400 |
commit | b81d662cbf0036d0e2b632ed95a877feab2a4860 (patch) | |
tree | 210d8138f9cde552ebe450fbbdc2a6d6508086b2 /Command/Uninit.hs | |
parent | 303666965ab5bc891c8ed44969553afb642c3f9c (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/Uninit.hs')
-rw-r--r-- | Command/Uninit.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Uninit.hs b/Command/Uninit.hs index cef89a5cf..ec6d0abf3 100644 --- a/Command/Uninit.hs +++ b/Command/Uninit.hs @@ -57,7 +57,7 @@ cleanup = do mapM_ removeAnnex =<< getKeysPresent liftIO $ removeDirectoryRecursive annexdir -- avoid normal shutdown - saveState + saveState False inRepo $ Git.Command.run "branch" [Param "-D", Param $ show Annex.Branch.name] liftIO exitSuccess |