◐ Shell
clean mode source ↗

Support hierarchical (with owner) or flat repository directory layout by jcansdale · Pull Request #2430 · github/VisualStudio

and others added 24 commits

October 15, 2019 15:28
Adds DefaultRepositoryLocation and DefaultRepositoryLayout
Make RepositoryCloneService responsible for storing the default clone
path and deciding on the default clone path for a given repository URL.
Factor out RepositoryLayout related logic into
RepositoryLayoutUtilities.
Make sure unknown layouts don't throw.
When users clone into a directory with the same name as the repository
owner, expect the case of the owner to match.

This avoids a false positive when cloning a repository from the "github"
organization into a direcotry called "GitHub". This is the default directory
that GitHub Desktop uses and could be very anoying.
When remembering the default clone directory, use same capitalization
as underlying sile system.