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* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [ yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
'--force', '--force'
'--depth=1'
]); ]);
return true; return true;
} }

View file

@ -35,8 +35,7 @@ export async function tryFetch(
): Promise<boolean> { ): Promise<boolean> {
try { try {
await git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [ await git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
'--force', '--force'
'--depth=1'
]) ])
return true return true
} catch { } catch {