fix branch conditions

This commit is contained in:
satotake 2021-10-21 00:18:19 +09:00
parent b0b939aaa5
commit 9dceaac6c6
2 changed files with 9 additions and 9 deletions

View file

@ -187,10 +187,10 @@ class GitCommandManager {
}
args.push('--prune', '--progress', '--no-recurse-submodules')
if (fetchDepth && fetchDepth > 0) {
args.push(`--depth=${fetchDepth}`)
} else if (shallowSince) {
if (shallowSince) {
args.push(`--shallow-since=${shallowSince}`)
} else if (fetchDepth && fetchDepth > 0) {
args.push(`--depth=${fetchDepth}`)
} else if (
fshelper.fileExistsSync(
path.join(this.workingDirectory, '.git', 'shallow')