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

Allow passing parent directory to git.clone command #85458

Closed
vially opened this issue Nov 23, 2019 · 7 comments · Fixed by #85459
Closed

Allow passing parent directory to git.clone command #85458

vially opened this issue Nov 23, 2019 · 7 comments · Fixed by #85459
Assignees
Labels
feature-request Request for new features or functionality git GIT issues verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@vially
Copy link
Contributor

vially commented Nov 23, 2019

I'm working on a Visual Studio Code extension that's supposed to make it easier to clone a git repository in a user configured directory.

The basic idea is that the user configures the clone directory once (e.g.: in settings.json) and then all the cloned repositories will be placed in this directory.

The git.clone command seems the ideal candidate for implementing something like this (especially now with the new awesome progress bar). However, the only problem is that the git.clone command is always interactively asking the user for the destination directory.

This feature request is about adding an option to the git.clone command which would allow other extensions to clone a repository in a specific directory without showing the Select Repository Location dialog.

One possible implementation could be as simple as adding another optional argument (for the destination directory) to the git.clone command (#85459).

@joaomoreno joaomoreno added feature-request Request for new features or functionality git GIT issues labels Nov 25, 2019
@joaomoreno joaomoreno added this to the Backlog milestone Nov 25, 2019
@joaomoreno joaomoreno modified the milestones: Backlog, November 2019 Nov 28, 2019
@joaomoreno joaomoreno added the verification-needed Verification of issue is requested label Dec 2, 2019
@connor4312 connor4312 added the verified Verification succeeded label Dec 3, 2019
@connor4312 connor4312 reopened this Dec 3, 2019
@connor4312 connor4312 added verification-found Issue verification failed and removed verified Verification succeeded labels Dec 3, 2019
@isidorn
Copy link
Contributor

isidorn commented Dec 6, 2019

Fixing the quirk is fine in the future. Thus pushing it out to the On Deck milestone since Joao is on vacation.
@connor4312 please speak up if you disagree.

@isidorn isidorn modified the milestones: November 2019, On Deck Dec 6, 2019
@grdowns
Copy link

grdowns commented Dec 24, 2019

+1 for this issue.

I'm also working on a VS Code extension (specifically the C++ extension here in Redmond). We're working on an experience that involves operating on the files in a repository that the user has cloned via the git.clone command, but currently there is no way to know which parent directory was selected.

Allowing the repository parent directory to be passed in would solve the problem entirely for us -- I'll be watching this issue closely. 🙂

@vially
Copy link
Contributor Author

vially commented Dec 24, 2019

@grdowns This has been implemented (#85459) and you can already use it in Visual Studio Code version 1.41.

@grdowns
Copy link

grdowns commented Dec 24, 2019

Thanks @vially!

@isidorn
Copy link
Contributor

isidorn commented Dec 24, 2019

Since this is already implemented I am closign this issue.
Thanks
As for the quirk @joaomoreno can handle as an independet issue

@isidorn isidorn closed this as completed Dec 24, 2019
@isidorn isidorn modified the milestones: On Deck, November 2019 Dec 24, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 14, 2020
@rzhao271
Copy link
Contributor

@isidorn @connor4312 should this issue be labelled with verified again?
I also wonder if the quirk has been filed as a separate issue. @joaomoreno

@rzhao271 rzhao271 removed the verification-found Issue verification failed label Oct 28, 2020
@JacksonKearl JacksonKearl added the verified Verification succeeded label Oct 28, 2020
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 verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants