Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jul 27, 2023
1 parent 9234877 commit 48cc7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/pipeline/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func validate(c *cli.Context) error {
client.WithLocalTemplates(p.TemplateFiles)
client.TemplateDepth = c.Int("max-template-depth")
} else {
// set max template depth to 3 if local templates are not provided.
// set max template depth to minimum of 5 and provided value if local templates are not provided.
// This prevents users from spamming SCM
client.TemplateDepth = util.MinInt(c.Int("max-template-depth"), 5)
logrus.Debugf("no local template files provided, setting max template depth to %d", client.TemplateDepth)
Expand Down

0 comments on commit 48cc7af

Please sign in to comment.