Allow cloning of repositories into empty directories

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.

@YuPeiHenry

Description

Versions

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

What happend

  • Attempted to clone grokys/PullRequestSandbox to the grokys\PullRequestSandbox3 folder (an empty folder)
  • Was block because there's an empty directory in the target destination

Expected behavior

  • User should be able to clone into empty directory
  • 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. There should be consistency with this to allow cloning to empty directories.

Screenshots

image

Additional context

This issue is a continuation of #2126, to address cloning into empty directories separately.