Skip to content

no warning about existing directory when using owner/name alias to clone #2830

Closed

Description

@shiftkey

Description

We don't seem to be validating when cloning an owner/name alias, and happily let the user stumble into an error about the directory already existing:

Version

GitHub Desktop version: 1.0.0

OS version: Windows 10.0.15063

Steps to Reproduce

  1. Launch Desktop, select File | Clone repository
  2. Select the URL tab, specify shiftkey/vcr-sharp, clone
  3. After clone completes, select File | Clone repository again
  4. Select the URL tab, specify shiftkey/vcr-sharp

Expected behavior: warning about directory existing

Actual behavior: no message, can try to clone and you get this error

screen shot 2017-09-22 at 9 16 32 am

fatal: destination path 'C:\Users\shiftkey\Documents\GitHub\vcr-sharp' already exists and is not an empty directory.
Error(s) during clone:
git clone failed: exit status 128

Reproduces how often: 100%

Activity

  1. added
    bug
    on Sep 21, 2017
  2. tierninho commented on Sep 22, 2017

    @tierninho
    Contributor

    My logs for the same issue:

    2017-09-22T13:34:22.216Z - info: [ui] Executing clone: git -c credential.helper= lfs clone --recursive --progress --progress -- https://github.com/tierninho/testtttttttttt.git /Users/tiernanlee/Desktop/GH/testtttttttttt (took 1.772s)
    2017-09-22T13:34:23.238Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.218s)
    2017-09-22T13:34:44.220Z - error: [ui] `git -c credential.helper= lfs clone --recursive --progress --progress -- https://github.com/tierninho/testtttttttttt.git /Users/tiernanlee/Desktop/GH/testtttttttttt` exited with an unexpected code: 2.
    fatal: destination path '/Users/tiernanlee/Desktop/GH/testtttttttttt' already exists and is not an empty directory.
    Error(s) during clone:
    git clone failed: exit status 128```
    
  3. self-assigned this
    on Sep 25, 2017
  4. locked as resolved and limited conversation to collaborators on Jul 20, 2018
  5. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions