+git-annex (10.20241032) UNRELEASED; urgency=medium
+
+ * git-remote-annex: Fix a reversion introduced in version 10.20241031
+ that broke cloning from a special remote.
+
+ -- Joey Hess <id@joeyh.name> Mon, 11 Nov 2024 12:26:00 -0400
+
git-annex (10.20241031) upstream; urgency=medium
* Sped up proxied downloads from special remotes, by streaming.
import Annex.UUID
import Annex.Content
import Annex.Perms
+import Annex.Tmp
import Annex.SpecialRemote.Config
import Remote.List
import Remote.List.Util
-- directory. The content of manifests is not stable, and so
-- it needs to re-download it fresh every time, and the object
-- file should not be stored locally.
- gettotmp dl = withTmpFile "GITMANIFEST" $ \tmp tmph -> do
- liftIO $ hClose tmph
- _ <- dl tmp
- b <- liftIO (B.readFile tmp)
- case parseManifest b of
- Right m -> Just <$> verifyManifest rmt m
- Left err -> giveup err
+ gettotmp dl = withOtherTmp $ \othertmp ->
+ withTmpFileIn (fromRawFilePath othertmp) "GITMANIFEST" $ \tmp tmph -> do
+ liftIO $ hClose tmph
+ _ <- dl tmp
+ b <- liftIO (B.readFile tmp)
+ case parseManifest b of
+ Right m -> Just <$> verifyManifest rmt m
+ Left err -> giveup err
getexport _ [] = return Nothing
getexport mk (loc:locs) =
--- /dev/null
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2024-11-11T16:39:48Z"
+ content="""
+Fixed by changing it to download to a path under .git
+
+Also, this directory special remote case makes a good test case so I will
+add it to the test suite, which will be the first git-remote-annex in the
+test suite.
+"""]]