force tryFetch

This commit is contained in:
Keunhong Lee 2022-05-25 04:13:58 +00:00
parent f094b77505
commit cde229828a
2 changed files with 6 additions and 2 deletions

View file

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