PR Feedback - remove depth=1 from tryFetch function

This commit is contained in:
Eric Webb 2024-03-08 11:56:05 -08:00
parent c4e548c6bd
commit b6576e092a
2 changed files with 2 additions and 4 deletions

3
dist/index.js vendored
View file

@ -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;
}

View file

@ -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 {