Skip to content

Commit

Permalink
Retry post error for filtering out files (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Kunal Kotwani <[email protected]>

Signed-off-by: Kunal Kotwani <[email protected]>
  • Loading branch information
kotwanikunal authored Oct 28, 2022
1 parent 78b763d commit a1481bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/backport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ const backportOnce = async ({
await git("switch", base);
await git("switch", "--create", head);
try {
await git("cherry-pick", "-x", "-n", commitSha);
try {
await git("cherry-pick", "-x", "-n", commitSha);
} catch (error: unknown) {
logError(
"Possibly a conflict error. Trying to skip possible conflict files. ",
);
}

for (const file of filesToSkip) {
await git("checkout", "HEAD", file);
}
Expand Down

0 comments on commit a1481bf

Please sign in to comment.