mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 06:43:07 -07:00
fix(cli): ensure git clone is used when --ref is provided
This commit is contained in:
@@ -248,7 +248,7 @@ export class ExtensionManager extends ExtensionLoader {
|
||||
) {
|
||||
tempDir = await ExtensionStorage.createTmpDir();
|
||||
const parsedGithubParts = tryParseGithubUrl(installMetadata.source);
|
||||
if (!parsedGithubParts) {
|
||||
if (!parsedGithubParts || installMetadata.ref) {
|
||||
await cloneFromGit(installMetadata, tempDir);
|
||||
installMetadata.type = 'git';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user