From 6e346e753f6c68be1dc91b7ccf1dfb6ed5e96f13 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Fri, 14 Feb 2025 02:03:53 -0800 Subject: [PATCH] git-filter-repo: Fix decompress error (#6536) Co-authored-by: Hsiao-nan Cheung --- bucket/git-filter-repo.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bucket/git-filter-repo.json b/bucket/git-filter-repo.json index 610c8ae0abb44..787ca1eabefdd 100644 --- a/bucket/git-filter-repo.json +++ b/bucket/git-filter-repo.json @@ -7,12 +7,17 @@ "Git": "git", "Python 3": "python" }, - "url": "https://github.com/newren/git-filter-repo/archive/v2.47.0.zip#/dl.7z", + "url": "https://github.com/newren/git-filter-repo/archive/v2.47.0.zip#/dl.zip_", "hash": "8f3d099bf91ceac6cae60d79aac701e9bc08fd0eed67c601cc5dd401d5788871", - "pre_install": "Move-Item \"$dir\\git-filter-repo-*\\*\" \"$dir\"; Remove-Item \"$dir\\git-filter-repo-*\"", + "installer": { + "script": [ + "Expand-ZipArchive -Path \"$dir\\dl.zip_\" -DestinationPath \"$dir\" -Removal", + "Move-Item \"$dir\\git-filter-repo-*\\*\" \"$dir\"; Remove-Item \"$dir\\git-filter-repo-*\"" + ] + }, "bin": "git-filter-repo", "checkver": "github", "autoupdate": { - "url": "https://github.com/newren/git-filter-repo/archive/v$version.zip#/dl.7z" + "url": "https://github.com/newren/git-filter-repo/archive/v$version.zip#/dl.zip_" } }