From 1331e8998f81fbb06620ac30e249e91630b1bc15 Mon Sep 17 00:00:00 2001 From: "gemini-cli[bot]" <218312386+gemini-cli[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 19:07:10 +0000 Subject: [PATCH] fix(patch): cherry-pick 31c609d to release/v0.6.0-preview.9 (#9251) Co-authored-by: Jacob MacDonald --- packages/cli/src/config/extensions/github.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/cli/src/config/extensions/github.ts b/packages/cli/src/config/extensions/github.ts index ead855cb98..a39ce1b03b 100644 --- a/packages/cli/src/config/extensions/github.ts +++ b/packages/cli/src/config/extensions/github.ts @@ -273,24 +273,6 @@ export async function downloadFromGitHubRelease( extractFile(downloadedAssetPath, destination); - const files = await fs.promises.readdir(destination); - const extractedDirName = files.find((file) => { - const filePath = path.join(destination, file); - return fs.statSync(filePath).isDirectory(); - }); - - if (extractedDirName) { - const extractedDirPath = path.join(destination, extractedDirName); - const extractedDirFiles = await fs.promises.readdir(extractedDirPath); - for (const file of extractedDirFiles) { - await fs.promises.rename( - path.join(extractedDirPath, file), - path.join(destination, file), - ); - } - await fs.promises.rmdir(extractedDirPath); - } - await fs.promises.unlink(downloadedAssetPath); return { tagName: releaseData.tag_name,