GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Don't leave behind empty directory when a clone fails · Issue #2126 · github/VisualStudio

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

Copy link
Copy link
Closed
#2241
Closed
Don't leave behind empty directory when a clone fails#2126
#2241
Copy link
Labels
bug

Description

@jcansdale
jcansdale
opened on Dec 12, 2018
Issue body actions

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

Activity

  1. meaghanlewis
    added
    bug
    on Dec 19, 2018
  2. jcansdale commented on Feb 26, 2019

    @jcansdale
    jcansdale
    on Feb 26, 2019
    CollaboratorAuthor
    More actions

    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.

    Yes, I definitely agree.

  3. jcansdale commented on Feb 28, 2019

    @jcansdale
    jcansdale
    on Feb 28, 2019
    CollaboratorAuthor
    More actions

    @YuPeiHenry,

    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.

    Could you open a new issue with this so we don't forget it when your pull request is merged? 🙂

  4. StanleyGoldman
    closed this as completedin #2241on Feb 28, 2019
  5. YuPeiHenry commented on Mar 1, 2019

    @YuPeiHenry
    YuPeiHenry
    on Mar 1, 2019
    Contributor
    More actions

    @jcansdale I have opened a new issue #2250 to address cloning into empty directories.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.