mirror of
https://github.com/actions/checkout.git
synced 2025-04-09 08:50:25 +02:00
Merge f63be2acac241cf31c81c5a3d7bd6de66b82fc79 into 85e6279cec87321a52edac9c87bce653a07cf6c2
This commit is contained in:
commit
84e2b2cb1e
@ -134,6 +134,7 @@ describe('Test fetchDepth and fetchTags options', () => {
|
||||
'-c',
|
||||
'protocol.version=2',
|
||||
'fetch',
|
||||
'--tags',
|
||||
'--prune',
|
||||
'--no-recurse-submodules',
|
||||
'--filter=filterValue',
|
||||
@ -248,6 +249,7 @@ describe('Test fetchDepth and fetchTags options', () => {
|
||||
'-c',
|
||||
'protocol.version=2',
|
||||
'fetch',
|
||||
'--tags',
|
||||
'--prune',
|
||||
'--no-recurse-submodules',
|
||||
'--filter=filterValue',
|
||||
@ -364,6 +366,7 @@ describe('Test fetchDepth and fetchTags options', () => {
|
||||
'-c',
|
||||
'protocol.version=2',
|
||||
'fetch',
|
||||
'--tags',
|
||||
'--prune',
|
||||
'--no-recurse-submodules',
|
||||
'--progress',
|
||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -656,6 +656,9 @@ class GitCommandManager {
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
|
||||
args.push('--no-tags');
|
||||
}
|
||||
else if (options.fetchTags) {
|
||||
args.push('--tags');
|
||||
}
|
||||
args.push('--prune', '--no-recurse-submodules');
|
||||
if (options.showProgress) {
|
||||
args.push('--progress');
|
||||
|
@ -263,6 +263,8 @@ class GitCommandManager {
|
||||
const args = ['-c', 'protocol.version=2', 'fetch']
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
|
||||
args.push('--no-tags')
|
||||
} else if (options.fetchTags) {
|
||||
args.push('--tags')
|
||||
}
|
||||
|
||||
args.push('--prune', '--no-recurse-submodules')
|
||||
|
Loading…
x
Reference in New Issue
Block a user