mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-12-03 04:49:02 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
923ad837f1 |
No files matched your search
Vendored
+3
-1
@@ -62,7 +62,9 @@ exports.getWorkingBaseAndType = getWorkingBaseAndType;
|
||||
function tryFetch(git, remote, branch) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote);
|
||||
yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
|
||||
'--force'
|
||||
]);
|
||||
return true;
|
||||
}
|
||||
catch (_a) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user