mirror of
https://github.com/actions/checkout.git
synced 2026-06-17 17:24:00 +08:00
Merge 0548471950 into 71cf2267d8
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -825,8 +825,8 @@ class GitCommandManager {
|
||||
fetch(refSpec, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const args = ['-c', 'protocol.version=2', 'fetch'];
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
|
||||
args.push('--no-tags');
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
|
||||
args.push(options.fetchTags ? '--tags' : '--no-tags');
|
||||
}
|
||||
args.push('--prune', '--no-recurse-submodules');
|
||||
if (options.showProgress) {
|
||||
|
||||
Reference in New Issue
Block a user