Skip to content

Allow passing parent directory to git.clone command #85458

Closed

Description

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).

Activity

  1. added
    feature-request
    git
    on Nov 25, 2019
  2. added
    verification-needed
    on Dec 2, 2019
  3. added
    verification-found
    and removed
    verified
    on Dec 3, 2019
  4. isidorn commented on Dec 6, 2019

    @isidorn

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

  5. grdowns commented on Dec 24, 2019

    @grdowns

    +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. 🙂

  6. vially commented on Dec 24, 2019

    @vially
    ContributorAuthor

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

  7. grdowns commented on Dec 24, 2019

    @grdowns
  8. isidorn commented on Dec 24, 2019

    @isidorn

    Since this is already implemented I am closign this issue.
    Thanks
    As for the quirk João Moreno (@joaomoreno) can handle as an independet issue

  9. locked and limited conversation to collaborators on Feb 14, 2020
  10. rzhao271 commented on Oct 27, 2020

    @rzhao271
    Collaborator

    Isidor Nikolic (@isidorn) Connor Peet (@connor4312) should this issue be labelled with verified again?
    I also wonder if the quirk has been filed as a separate issue. João Moreno (@joaomoreno)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestgitverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions