summaryrefslogtreecommitdiff
path: root/Remote/Git.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 /Remote/Git.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 'Remote/Git.hs')
-rw-r--r--Remote/Git.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Remote/Git.hs b/Remote/Git.hs
index efe182961..501a617c0 100644
--- a/Remote/Git.hs
+++ b/Remote/Git.hs
@@ -230,7 +230,7 @@ copyToRemote r key
-- run copy from perspective of remote
liftIO $ onLocal r $ do
ensureInitialized
- Annex.Content.saveState `after`
+ Annex.Content.saveState True `after`
Annex.Content.getViaTmp key
(rsyncOrCopyFile params keysrc)
| Git.repoIsSsh r = do