Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git clone command to support cloning with specific branch & disable popup which ask user whether he wants open it in explorer #145776

Closed
omkar07 opened this issue Mar 22, 2022 · 5 comments
Assignees
Labels
feature-request Request for new features or functionality git GIT issues

Comments

@omkar07
Copy link

omkar07 commented Mar 22, 2022

Hi team, We are using vscode internal git extension command clone to clone the repository with a specific branch. However, It doesn't look like from source code here that if there's a way to do so

async clone(url: string, options: ICloneOptions, cancellationToken?: CancellationToken): Promise<string> {

Also, we would like to know if there is a way to disable this below popup which asks users whether they want to open the cloned repository in the file explorer. Could you please help take a look into this below issue?

Command: commands.executeCommand("git.clone", "repositoryUrl", "directory to clone");
also checkout command is throwing error: no repo found after cloning repo and executing below command:
commands.executeCommand("git.checkout", repositoryUrl, directory where repo cloned, 'branchName'); not sure how to clone specific branch.

Popup to disable:
Screen Shot 2022-03-22 at 11 27 55 AM

@omkar07 omkar07 changed the title Git clone command to support cloning with specific branch & a way to avoid the popup which ask user whether he wants open it in explorer Git clone command to support cloning with specific branch & disable popup which ask user whether he wants open it in explorer Mar 22, 2022
@lszomoru lszomoru added feature-request Request for new features or functionality git GIT issues labels Mar 23, 2022
@omkar07
Copy link
Author

omkar07 commented Apr 20, 2022

@lszomoru , any updates on this it's been a month almost? Could you please help otherwise on how with checkout command we can achieve this?

@lszomoru
Copy link
Member

@omkar07, as of right now there is no way to close a branch directly using the clone extension command. The popup that you are referring to is being controlled by the git.openAfterClone setting which is set to prompt by default. You can change the setting depending of the experience that you would like to have.

@vscodenpa
Copy link

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality git GIT issues
Projects
None yet
Development

No branches or pull requests

4 participants
@lszomoru @omkar07 @vscodenpa and others