Skip to content

Commit ca4f527

Browse files
Update init.js.twig
1 parent b3d36f4 commit ca4f527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ const initFunction = async () => {
8181

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

84-
const 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 --depth 1 --sparse https://github.com/{{ sdk.gitUserName }}/functions-starter ."; // depth prevents fetching older commits reducing the amount fetched
8585

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

8888
// Force use CMD as powershell does not support &&
8989
if (process.platform == 'win32') {

0 commit comments

Comments
 (0)