Skip to content

Commit 12f86d7

Browse files
Merge pull request #701 from appwrite/cli-1.4.x
Add V3 Tag to functions pull in CLI
2 parents b447321 + cd7a063 commit 12f86d7

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)