From b6576e092a40cbca85d93ff48d7a70c0251ba052 Mon Sep 17 00:00:00 2001 From: Eric Webb Date: Fri, 8 Mar 2024 11:56:05 -0800 Subject: [PATCH] PR Feedback - remove depth=1 from tryFetch function --- dist/index.js | 3 +-- src/create-or-update-branch.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 2827a60..bc0bfac 100644 --- a/dist/index.js +++ b/dist/index.js @@ -68,8 +68,7 @@ function tryFetch(git, remote, branch) { return __awaiter(this, void 0, void 0, function* () { try { yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [ - '--force', - '--depth=1' + '--force' ]); return true; } diff --git a/src/create-or-update-branch.ts b/src/create-or-update-branch.ts index 0fce3c4..b048d5d 100644 --- a/src/create-or-update-branch.ts +++ b/src/create-or-update-branch.ts @@ -35,8 +35,7 @@ export async function tryFetch( ): Promise { try { await git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [ - '--force', - '--depth=1' + '--force' ]) return true } catch {