We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3cab01 commit 5add546Copy full SHA for 5add546
internal/templates/template.go
@@ -45,6 +45,8 @@ func InitFromRepo(w io.Writer, repo, subdir, target string) error {
45
"git", "clone", parsedRepoURL,
46
// Clone and checkout a specific ref
47
"-b", lo.Ternary(build.IsDev, "main", build.Version),
48
+ // Create shallow clone with depth of 1
49
+ "--depth", "1",
50
tmp,
51
)
52
fmt.Fprintf(w, "%s\n", cmd)
0 commit comments