From b764a61a65e5383d34ad478a7f645fa483a7ab18 Mon Sep 17 00:00:00 2001 From: Rares Matei Date: Tue, 17 Dec 2024 14:01:15 +0000 Subject: [PATCH] revert protocol v2 change (#80) --- workflow-steps/checkout/main.ts | 2 +- workflow-steps/checkout/output/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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";