From 222c97f41419fceeb8212817985db46d1060f8a8 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Sun, 2 Mar 2025 17:11:28 +0800 Subject: [PATCH] git-filter-repo: Fix bug for Windows PowerShell (#6592) --- bucket/git-filter-repo.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bucket/git-filter-repo.json b/bucket/git-filter-repo.json index 787ca1eabe..4f232b0f62 100644 --- a/bucket/git-filter-repo.json +++ b/bucket/git-filter-repo.json @@ -11,7 +11,8 @@ "hash": "8f3d099bf91ceac6cae60d79aac701e9bc08fd0eed67c601cc5dd401d5788871", "installer": { "script": [ - "Expand-ZipArchive -Path \"$dir\\dl.zip_\" -DestinationPath \"$dir\" -Removal", + "Rename-Item -Path \"$dir\\dl.zip_\" -NewName dl.zip", + "Expand-ZipArchive -Path \"$dir\\dl.zip\" -DestinationPath \"$dir\" -Removal", "Move-Item \"$dir\\git-filter-repo-*\\*\" \"$dir\"; Remove-Item \"$dir\\git-filter-repo-*\"" ] },