Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Don't leave behind empty directory when a clone fails #2126

@jcansdale

Description

@jcansdale

Versions

  • GitHub Extension for Visual Studio version: 2.6.0
  • Visual Studio version: 2015 (probably all)

What happened

  1. Attempted to clone grokys/PullRequestSandbox3 (which doesn't exist)
  2. Attempted to clone grokys/PullRequestSandbox to the grokys\PullRequestSandbox3 folder
  3. Was block because there's an empty directory in the target destination

Expected behavior

  • User should be able to clone into empty directory
  • When a clone fails, the empty directory created for the clone should be deleted.

Screenshots

image

Note: The logic that the new Visual Studio 2019 Get to Code feature uses is that a directory must be empty or not exist on order to clone. I think we should be consistent with this and allow cloning to empty directories.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions