mirror of
https://github.com/actions/checkout.git
synced 2026-05-13 16:09:50 +00:00
build dist
This commit is contained in:
Vendored
+1
-1
@@ -666,7 +666,7 @@ class GitCommandManager {
|
|||||||
if (options.shallowSince) {
|
if (options.shallowSince) {
|
||||||
args.push(`--shallow-since=${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}`);
|
args.push(`--depth=${options.fetchDepth}`);
|
||||||
}
|
}
|
||||||
else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
|
else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user