Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Fix issue when reverting a commit results in a failingResult#247

Merged
ajoberstar merged 1 commit into
ajoberstar:masterfrom
gavinbunney:revert-failure-fix
Jul 3, 2018
Merged

Fix issue when reverting a commit results in a failingResult#247
ajoberstar merged 1 commit into
ajoberstar:masterfrom
gavinbunney:revert-failure-fix

Conversation

@gavinbunney

Copy link
Copy Markdown

When a JGitRevertCommand fails, then a null RevCommit is returned from the call method (see https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java#L219).

This PR adds a check for any failure modes and throws an exception (message shamelessly taken from MergeOp)

@ajoberstar

Copy link
Copy Markdown
Owner

Thanks! I'll get this merged in tonight.

@ajoberstar
ajoberstar merged commit 867b8be into ajoberstar:master Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants