Skip to content

"github ." in subdirectory of repository should detect existing repository #2832

Closed

Description

@shiftkey

Description

This was reported in #2775 (comment) but we currently assume a directory added to the app (through command line or drag-and-drop) is the root directory, but it can be the subdirectory of an existing repository.

Version

GitHub Desktop version: 1.0.0

OS version: Windows 10.0.15063

Steps to Reproduce

Note: Currently only works with cmd or powershell on Windows until #2712 is published in the next update.

  1. git clone https://github.com/atom/node-keytar or similar repository
  2. cd node-keytar/lib to go into a folder
  3. github . to add the repository

Expected behavior: "Add existing repository" dialog pointing to the repository root.

Actual behavior: Path refers to the lib directory, which is going to cause headaches if we track that folder

Reproduces how often: 100%

Activity

  1. added
    bug
    on Sep 22, 2017
  2. self-assigned this
    on Sep 22, 2017
  3. added this to the 1.0.x milestone on Sep 22, 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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions