Skip to content

Commit cd7a063

Browse files
Update init.js.twig
1 parent ee12cb1 commit cd7a063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/commands/init.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const initFunction = async () => {
8181

8282
fs.mkdirSync(functionDir, "777");
8383

84-
let gitInitCommands = "git clone --depth 1 --sparse https://github.com/{{ sdk.gitUserName }}/functions-starter ."; // depth prevents fetching older commits reducing the amount fetched
84+
let gitInitCommands = "git clone -b v3 --single-branch --depth 1 --sparse https://github.com/{{ sdk.gitUserName }}/functions-starter ."; // depth prevents fetching older commits reducing the amount fetched
8585

8686
let gitPullCommands = `git sparse-checkout add ${answers.runtime.id}`;
8787

0 commit comments

Comments
 (0)