Skip to content

find the repository root (if applicable) before adding to app - #2835

Merged
joshaber merged 6 commits into
masterfrom
looking-for-repository-root
Sep 25, 2017
Merged

joshaber merged 6 commits into
masterfrom
looking-for-repository-root

Conversation

@shiftkey

@shiftkey shiftkey commented Sep 22, 2017 •

Copy link
Copy Markdown
Member

Fixes #2832

A minor bit of confusion if you try and add a subdirectory of an existing repository to the app (Typescript is the repository root):

Note that nothing actually breaks when adding the subdirectory, it goes through and resolves the top-level directory fine.

Given that both github . and drag-and-drop end up at this view, I went through to ensure the flow was the same for both:

  • refactor CloningRepository out to it's own module
  • extract matchExistingRepository to lookup a repository from a given path
  • github . should resolve repository root, and if found try to find existing repo
  • drag-and-drop folder should resolve repository root, and if found try to find existing repo

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 25, 2017
@joshaber joshaber self-assigned this Sep 25, 2017

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎎

@joshaber
joshaber merged commit b324c81 into master Sep 25, 2017
@joshaber
joshaber deleted the looking-for-repository-root branch September 25, 2017 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants