diff --git a/tools/local-actions/changelog/lib/main.ts b/tools/local-actions/changelog/lib/main.ts index 4e42588c5..3ca4eda98 100644 --- a/tools/local-actions/changelog/lib/main.ts +++ b/tools/local-actions/changelog/lib/main.ts @@ -110,7 +110,7 @@ function writeAndAddToGit(filePath: string, contents: string) { function getLatestRefFromUpstream(branchOrTag: string) { try { const git = AuthenticatedGitClient.get(); - git.runGraceful(['fetch', git.getRepoGitUrl(), branchOrTag, '--depth=250']); + git.runGraceful(['fetch', git.getRepoGitUrl(), branchOrTag, '--deepen=250']); return git.runGraceful(['rev-parse', 'FETCH_HEAD']).stdout.trim(); } catch { core.error(`Unable to retrieve '${branchOrTag}' from upstream`); diff --git a/tools/local-actions/changelog/main.js b/tools/local-actions/changelog/main.js index d5567471c..58f27e756 100644 --- a/tools/local-actions/changelog/main.js +++ b/tools/local-actions/changelog/main.js @@ -54772,7 +54772,7 @@ function writeAndAddToGit(filePath, contents) { function getLatestRefFromUpstream(branchOrTag) { try { const git = authenticated_git_client_1.AuthenticatedGitClient.get(); - git.runGraceful(["fetch", git.getRepoGitUrl(), branchOrTag, "--depth=250"]); + git.runGraceful(["fetch", git.getRepoGitUrl(), branchOrTag, "--deepen=250"]); return git.runGraceful(["rev-parse", "FETCH_HEAD"]).stdout.trim(); } catch { core.error(`Unable to retrieve '${branchOrTag}' from upstream`);