Skip to content

Commit

Permalink
revert protocol v2 change (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmatei authored and github-actions[bot] committed Dec 17, 2024
1 parent 6ce9e74 commit b764a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workflow-steps/checkout/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion workflow-steps/checkout/output/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit b764a61

Please sign in to comment.