summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-03-14 16:12:55 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-03-14 16:12:55 -0400
commit168f26320bb4dd0bc76e4c0c0b7383c1f6f6f661 (patch)
treef4ebe70328d5eec82286c1d6a1359515ceeeec47
parent90db9740d0d64b34f2e46f57f8aaca235088734c (diff)
use hash-object --batch
Handle was plumbed through, but not used.
-rw-r--r--Annex/Branch.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs
index 6ef778801..a46a90ee9 100644
--- a/Annex/Branch.hs
+++ b/Annex/Branch.hs
@@ -564,7 +564,7 @@ performTransitionsLocked jl ts neednewlocalbranch transitionedrefs = do
-- transitions on it.
return ()
ChangeFile content' -> do
- sha <- inRepo $ hashObject BlobObject content'
+ sha <- liftIO $ hashBlob hasher content'
Annex.Queue.addUpdateIndex $ Git.UpdateIndex.pureStreamer $
Git.UpdateIndex.updateIndexLine sha FileBlob (asTopFilePath file)
apply rest hasher file content' trustmap