summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Remote/Directory.hs2
-rw-r--r--debian/changelog2
2 files changed, 3 insertions, 1 deletions
diff --git a/Remote/Directory.hs b/Remote/Directory.hs
index f166c2a0d..737ae6312 100644
--- a/Remote/Directory.hs
+++ b/Remote/Directory.hs
@@ -158,7 +158,7 @@ storeSplit' meterupdate chunksize (d:dests) bs c = do
feed _ [] _ = return []
feed sz (l:ls) h = do
let s = fromIntegral $ S.length l
- if s <= sz
+ if s <= sz || sz == chunksize
then do
S.hPut h l
meterupdate $ toInteger s
diff --git a/debian/changelog b/debian/changelog
index da7896b4c..c9488014e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ git-annex (3.20121113) UNRELEASED; urgency=low
it all in memory.
* S3: Added progress display for uploading and downloading.
* directory special remote: Made more efficient and robust.
+ * Bugfix: directory special remote could loop forever storing a key
+ when a too small chunksize was configured.
-- Joey Hess <joeyh@debian.org> Tue, 13 Nov 2012 13:17:07 -0400