diff --git a/workflow-steps/checkout/main.ts b/workflow-steps/checkout/main.ts index dacb75f..25f2d3d 100644 --- a/workflow-steps/checkout/main.ts +++ b/workflow-steps/checkout/main.ts @@ -16,7 +16,7 @@ execSync(`echo "GIT_REPOSITORY_URL=''" >> $NX_CLOUD_ENV`); if (depth === '0') { // Fetch all branches and tags if depth is 0 execSync( - 'git fetch -c protocol.version=2 --prune --progress --no-recurse-submodules --tags origin "+refs/heads/*:refs/remotes/origin/*"', + 'git fetch --prune --progress --no-recurse-submodules --tags origin "+refs/heads/*:refs/remotes/origin/*"', ); } else { // Fetch with specified depth diff --git a/workflow-steps/checkout/output/main.js b/workflow-steps/checkout/output/main.js index 3fca4d8..3e5cc84 100644 --- a/workflow-steps/checkout/output/main.js +++ b/workflow-steps/checkout/output/main.js @@ -13,7 +13,7 @@ if (process.platform != "win32") { (0, import_child_process.execSync)(`echo "GIT_REPOSITORY_URL=''" >> $NX_CLOUD_ENV`); if (depth === "0") { (0, import_child_process.execSync)( - 'git fetch -c protocol.version=2 --prune --progress --no-recurse-submodules --tags origin "+refs/heads/*:refs/remotes/origin/*"' + 'git fetch --prune --progress --no-recurse-submodules --tags origin "+refs/heads/*:refs/remotes/origin/*"' ); } else { const tagsArg = fetchTags ? " --tags" : "--no-tags";