mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
force tryFetch (#1189)
This commit is contained in:
parent
f094b77505
commit
923ad837f1
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue