This commit is contained in:
@@ -714,13 +714,27 @@ export class AppsService {
|
|||||||
if (!isUnrelatedHistoryError(message)) {
|
if (!isUnrelatedHistoryError(message)) {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
await execFileAsync(gitBin, [
|
try {
|
||||||
...mergeOptions,
|
await execFileAsync(gitBin, [
|
||||||
'merge',
|
...mergeOptions,
|
||||||
'--allow-unrelated-histories',
|
'merge',
|
||||||
'--no-ff',
|
'--allow-unrelated-histories',
|
||||||
commitSha,
|
'--no-ff',
|
||||||
], { cwd: workDir });
|
'--no-edit',
|
||||||
|
commitSha,
|
||||||
|
], { cwd: workDir });
|
||||||
|
} catch {
|
||||||
|
await execFileAsync(gitBin, [
|
||||||
|
...mergeOptions,
|
||||||
|
'merge',
|
||||||
|
'--allow-unrelated-histories',
|
||||||
|
'--no-ff',
|
||||||
|
'--no-edit',
|
||||||
|
'-X',
|
||||||
|
'theirs',
|
||||||
|
commitSha,
|
||||||
|
], { cwd: workDir });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await execFileAsync(gitBin, [
|
await execFileAsync(gitBin, [
|
||||||
|
|||||||
Reference in New Issue
Block a user