Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

gavinbunney
Copy link

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
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 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.

2 participants