From 1d858e36dae7411926bed201ae5a8328b34daf4e Mon Sep 17 00:00:00 2001 From: jnamenyi <56647220+jnamenyi@users.noreply.github.com> Date: Fri, 12 Mar 2021 23:23:37 +0100 Subject: [PATCH] When creating a new application we try to use the master branch as default but on the repository it is main (#356) --- Sources/VaporToolbox/New/New.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/VaporToolbox/New/New.swift b/Sources/VaporToolbox/New/New.swift index 87b0cd60..0a40bbdf 100644 --- a/Sources/VaporToolbox/New/New.swift +++ b/Sources/VaporToolbox/New/New.swift @@ -36,7 +36,7 @@ struct New: AnyCommand { context.console.info("Cloning template...") try? FileManager.default.removeItem(atPath: templateTree) - let gitBranch = signature.templateBranch ?? "master" + let gitBranch = signature.templateBranch ?? "main" _ = try Process.git.clone(repo: gitUrl, toFolder: templateTree, branch: gitBranch) if FileManager.default.fileExists(atPath: templateTree.appendingPathComponents("manifest.yml")) {