mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
support cloning subdirectories and branches when parsing Git URLs in meteor create --from
This commit is contained in:
@@ -1183,7 +1183,12 @@ main.registerCommand({
|
||||
if (example.isInternal) {
|
||||
await cloneSubdirectory(EXAMPLES_REPO, EXAMPLES_BRANCH, example.internalPath, appPath);
|
||||
} else {
|
||||
await cloneRepo(example.repositoryUrl, appPath);
|
||||
const parsed = parseGitUrl(example.repositoryUrl);
|
||||
if (parsed.dir) {
|
||||
await cloneSubdirectory(parsed.repoUrl, parsed.branch, parsed.dir, appPath);
|
||||
} else {
|
||||
await cloneRepo(parsed.repoUrl, appPath, { branch: parsed.branch });
|
||||
}
|
||||
}
|
||||
|
||||
await setupMessages();
|
||||
|
||||
Reference in New Issue
Block a user