Skip to content

Commit

Permalink
When creating a new application we try to use the master branch as de…
Browse files Browse the repository at this point in the history
…fault but on the repository it is main (#356)
  • Loading branch information
jnamenyi authored Mar 12, 2021
1 parent 6518e9d commit 1d858e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/VaporToolbox/New/New.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 1d858e3

Please sign in to comment.