Skip to content

Commit

Permalink
PR Feedback - remove depth=1 from tryFetch function
Browse files Browse the repository at this point in the history
  • Loading branch information
webmonarch committed Mar 10, 2024
1 parent c4e548c commit b6576e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions src/create-or-update-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export async function tryFetch(
): Promise<boolean> {
try {
await git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
'--force',
'--depth=1'
'--force'
])
return true
} catch {
Expand Down

0 comments on commit b6576e0

Please sign in to comment.