diff --git a/dist/index.js b/dist/index.js index 2d696f7..f2651f8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -666,7 +666,7 @@ class GitCommandManager { if (options.shallowSince) { args.push(`--shallow-since=${options.shallowSince}`); } - else if (options.fetchDepth && options.fetchDepth > 0) { + if (options.fetchDepth && options.fetchDepth > 0) { args.push(`--depth=${options.fetchDepth}`); } else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {