From 64ffef1ea610c4052efefeb955034987fb104bc4 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:24:23 +0000 Subject: [PATCH 1/5] . --- dist/index.js | 2 ++ src/git-command-manager.ts | 1 + src/input-helper.ts | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 67752ae..45c8d27 100644 --- a/dist/index.js +++ b/dist/index.js @@ -641,6 +641,7 @@ class GitCommandManager { args.push('--no-tags'); } args.push('--prune', '--no-recurse-submodules'); + console.log(`options show progress = ${options.showProgress}`); if (options.showProgress) { args.push('--progress'); } @@ -1746,6 +1747,7 @@ function getInputs() { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE'; core.debug(`show progress = ${result.showProgress}`); + console.log(`show progress = ${result.showProgress}`); // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'; core.debug(`lfs = ${result.lfs}`); diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 7752cfa..41bc394 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -255,6 +255,7 @@ class GitCommandManager { } args.push('--prune', '--no-recurse-submodules') + console.log(`options show progress = ${options.showProgress}`) if (options.showProgress) { args.push('--progress') } diff --git a/src/input-helper.ts b/src/input-helper.ts index be9cecd..6385938 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,7 +109,7 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) - + console.log(`show progress = ${result.showProgress}`) // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`) From e1b7fe15cfa2060cffca56b01dd7d6eb7b6a777f Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:30:54 +0000 Subject: [PATCH 2/5] . --- dist/index.js | 1 + src/git-source-provider.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index 45c8d27..13f3e36 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1261,6 +1261,7 @@ function getSource(settings) { else { fetchOptions.fetchDepth = settings.fetchDepth; fetchOptions.fetchTags = settings.fetchTags; + fetchOptions.showProgress = settings.showProgress; const refSpec = refHelper.getRefSpec(settings.ref, settings.commit); yield git.fetch(refSpec, fetchOptions); } diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index c1360b8..acbf688 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -177,6 +177,7 @@ export async function getSource(settings: IGitSourceSettings): Promise { } else { fetchOptions.fetchDepth = settings.fetchDepth fetchOptions.fetchTags = settings.fetchTags + fetchOptions.showProgress = settings.showProgress const refSpec = refHelper.getRefSpec(settings.ref, settings.commit) await git.fetch(refSpec, fetchOptions) } From 276befb35cbc35b5468f6ec9f25715f021edc5ca Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:33:16 +0000 Subject: [PATCH 3/5] . --- dist/index.js | 2 -- src/git-command-manager.ts | 1 - src/input-helper.ts | 1 - 3 files changed, 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 13f3e36..f4af77a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -641,7 +641,6 @@ class GitCommandManager { args.push('--no-tags'); } args.push('--prune', '--no-recurse-submodules'); - console.log(`options show progress = ${options.showProgress}`); if (options.showProgress) { args.push('--progress'); } @@ -1748,7 +1747,6 @@ function getInputs() { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE'; core.debug(`show progress = ${result.showProgress}`); - console.log(`show progress = ${result.showProgress}`); // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'; core.debug(`lfs = ${result.lfs}`); diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 41bc394..7752cfa 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -255,7 +255,6 @@ class GitCommandManager { } args.push('--prune', '--no-recurse-submodules') - console.log(`options show progress = ${options.showProgress}`) if (options.showProgress) { args.push('--progress') } diff --git a/src/input-helper.ts b/src/input-helper.ts index 6385938..c76bed5 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,7 +109,6 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) - console.log(`show progress = ${result.showProgress}`) // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`) From 691545e3dc320848f7d2b29e2f23943860c2c8a5 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:34:17 +0000 Subject: [PATCH 4/5] . --- src/input-helper.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input-helper.ts b/src/input-helper.ts index c76bed5..fa4aafc 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,6 +109,7 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) + // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`) From bab023d7a2c8eef4351fc96992dc6d83c9561bb2 Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:37:26 +0000 Subject: [PATCH 5/5] . --- src/input-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input-helper.ts b/src/input-helper.ts index fa4aafc..be9cecd 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -109,7 +109,7 @@ export async function getInputs(): Promise { result.showProgress = (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' core.debug(`show progress = ${result.showProgress}`) - + // LFS result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' core.debug(`lfs = ${result.lfs}`)