Skip to content

Commit

Permalink
Update pullop tests and doc to reflect status change
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoberstar committed May 8, 2016
1 parent ac8e2af commit 778f27f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/groovy/org/ajoberstar/grgit/operation/PullOp.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import org.eclipse.jgit.api.errors.GitAPIException

/**
* Pulls changes from the remote on the current branch. If the changes
* conflict, the pull will fail, leaving the working tree as-is, and
* throwing an exception.
* conflict, the pull will fail, any conflicts can be retrieved with
* {@code grgit.status()}, and throwing an exception.
*
* <p>Pull changes.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package org.ajoberstar.grgit.operation

import org.ajoberstar.grgit.Commit
import org.ajoberstar.grgit.Grgit
import org.ajoberstar.grgit.Status
import org.ajoberstar.grgit.exception.GrgitException
import org.ajoberstar.grgit.fixtures.MultiGitOpSpec

Expand Down Expand Up @@ -103,7 +104,7 @@ class PullOpSpec extends MultiGitOpSpec {
when:
localGrgit.pull()
then:
localGrgit.status().clean
localGrgit.status() == new Status(conflicts: ['1.txt'])
localGrgit.head() == localHead
thrown(GrgitException)
}
Expand Down

0 comments on commit 778f27f

Please sign in to comment.