diff options
author | Joey Hess <joey@kitenet.net> | 2012-02-14 11:20:30 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-02-14 11:20:34 -0400 |
commit | a40ec5e03e980b7337bf01eca1661a088ee476c2 (patch) | |
tree | 679e1122b6378e2d3f0a64362be3d504ef387c89 /Annex | |
parent | 82ae30d82099782708abd8e3a6fe27abbde04e71 (diff) |
Fixed a memory leak due to excessive strictness when committing journal files.
When hashing the files, the entire list of shas was read strictly.
That was entirely unnecessary, since there's a cleanup action run
after they're consumed.
Diffstat (limited to 'Annex')
-rw-r--r-- | Annex/Branch.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs index b2b1ed3e4..72a98ac16 100644 --- a/Annex/Branch.hs +++ b/Annex/Branch.hs @@ -190,7 +190,7 @@ commit message = whenM journalDirty $ lockJournal $ do {- Commits the staged changes in the index to the branch. - - Ensures that the branch's index file is first updated to the state - - of the brannch at branchref, before running the commit action. This + - of the branch at branchref, before running the commit action. This - is needed because the branch may have had changes pushed to it, that - are not yet reflected in the index. - |