summaryrefslogtreecommitdiff
path: root/Annex/Branch.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-09 14:03:44 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-09 14:03:44 -0400
commitcc60ce60aaba9f9f72057a9172c99515308e2b10 (patch)
tree6396fc46a22898e563b8c02848b9e3265033cd9a /Annex/Branch.hs
parent0d3bc53e59a34f126ac0ff2bf4a738ab0a3fee0b (diff)
followup to bug I cannot reproduce, and analysis based presumptive fix
Diffstat (limited to 'Annex/Branch.hs')
-rw-r--r--Annex/Branch.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs
index 7411e7010..4bd94bddb 100644
--- a/Annex/Branch.hs
+++ b/Annex/Branch.hs
@@ -414,6 +414,7 @@ stageJournal jl = withIndex $ do
g <- gitRepo
let dir = gitAnnexJournalDir g
(jlogf, jlogh) <- openjlog
+ liftIO $ fileEncoding jlogh
withJournalHandle $ \jh -> do
h <- hashObjectStart g
Git.UpdateIndex.streamUpdateIndex g