The location value no longer needs to match the url of an existing
git remote, and locations not using ssh:// will work now, including
both paths and host:/path
+ * Fix retrival of an empty file that is stored in a special remote with
+ chunking enabled.
+ (Fixes a reversion in 8.20201103)
-- Joey Hess <id@joeyh.name> Wed, 01 Jun 2022 13:23:05 -0400
Nothing -> l
Just keysz ->
let (d, m) = keysz `divMod` fromIntegral chunksz
- chunkcount = d + if m == 0 then 0 else 1
+ chunkcount = max 1 (d + if m == 0 then 0 else 1)
v = (FixedSizeChunks chunksz, chunkcount)
in if v `elem` recorded
then l
tried both 8.20211123 and 10.20220504 from debian
+
+> [[fixed|done]] --[[Joey]]
--- /dev/null
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2022-06-09T18:05:15Z"
+ content="""
+This was broken by [[!commit dad4be97c2057db1ef3a13bb983d1701a90c9069]].
+
+For a key of size zero, `addspeculative` adds on a `[]` to the list of chunk
+key. But that causes retrieveChunks to think that it's already retrieved
+all the chunks, so it avoids doing any retrieval, so the file is not
+written. It needs to retrieve the empty key even though it's empty,
+so it can decrypt it when it's encrypted; git-annex does not special case
+empty file retrieval.
+
+Odd that testremote did not detect this. It does test with empty keys, and
+with chunking.
+"""]]