From b81d662cbf0036d0e2b632ed95a877feab2a4860 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 28 Jan 2012 15:41:52 -0400 Subject: 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. --- git-annex-shell.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-annex-shell.hs') diff --git a/git-annex-shell.hs b/git-annex-shell.hs index 4fdeae1a8..e747a447b 100644 --- a/git-annex-shell.hs +++ b/git-annex-shell.hs @@ -82,7 +82,7 @@ builtins = map cmdname cmds builtin :: String -> String -> [String] -> IO () builtin cmd dir params = do checkNotReadOnly cmd - dispatch (cmd : filterparams params) cmds options header $ + dispatch True (cmd : filterparams params) cmds options header $ Git.Construct.repoAbsPath dir >>= Git.Construct.fromAbsPath external :: [String] -> IO () -- cgit v1.2.3