Verified Commit 250d124b authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

Try to speed up transfer by caching packages' refs

parent bd7326f6
......@@ -99,10 +99,22 @@ async def main(_args) -> int:
lock_tag(pkggitdir, pkgver)
await run("git", "fetch", pkggitdir, f"refs/tags/{pkgver}")
tagref = "refs/last-tag"
cacherefs = f"refs/packages/{pkgbase}/*"
await run(
if pkgdir.exists():
await run("git", "rm", "-r", pkgdir)
await run("git", "read-tree", f"--prefix={pkgdir}", "-u", "FETCH_HEAD")
await run("git", "read-tree", f"--prefix={pkgdir}", "-u", tagref)
message.append(f"Released {pkgbase} {pkgver} to {repo}")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment