Skip to content

fix(cherrypick): report Git's error instead of NotImplementedError - #130

Merged
jorio merged 1 commit into
jorio:masterfrom
Sanjays2402:fix/cherrypick-git-error
Jul 25, 2026
Merged

fix(cherrypick): report Git's error instead of NotImplementedError#130
jorio merged 1 commit into
jorio:masterfrom
Sanjays2402:fix/cherrypick-git-error

Conversation

@Sanjays2402

Copy link
Copy Markdown
Contributor

Closes #129

CherrypickCommit raised a bare NotImplementedError for any git cherry-pick exit code other than 0 or 1, so a genuine Git failure (rc 128 when local changes would be overwritten) showed up as an opaque traceback instead of the message Git actually printed. It now raises AbortTask(driver.htmlErrorText()), matching how PullBranch and ApplyStash already report Git failures.

New testCherrypickGitError dirties the file the cherry-pick would overwrite; it fails on master and passes with the fix.

CherrypickCommit raised a bare NotImplementedError for any 'git cherry-pick'
exit code other than 0 or 1, so real Git failures (e.g. rc 128 when local
changes would be overwritten) surfaced as an opaque traceback instead of the
message Git printed.

Raise AbortTask with the driver's error text, matching how PullBranch and
ApplyStash already report Git failures.

Closes jorio#129
@jorio
jorio merged commit 106aa9e into jorio:master Jul 25, 2026
7 checks passed
@jorio

jorio commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Thank you for this fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NotImplementedError exception hides the real error output from Git execution

2 participants