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

Could not find property MergeOp #29

Closed
mb720 opened this issue Apr 17, 2014 · 1 comment
Closed

Could not find property MergeOp #29

mb720 opened this issue Apr 17, 2014 · 1 comment

Comments

@mb720
Copy link

mb720 commented Apr 17, 2014

Hi,

I'm encountering this error:

* What went wrong:
Execution failed for task ':onlyFFmerge'.
> Could not find property 'MergeOp' on task ':onlyFFmerge'.

This is my script:

buildscript {
    repositories { mavenCentral() }
    dependencies { classpath "org.ajoberstar:grgit:0.2.2" }
}
import org.ajoberstar.grgit.*

task onlyFFmerge(){
    doLast{
      def repo = Grgit.open(".")
      repo.merge(mode: MergeOp.Mode.ONLY_FF)
      // This works fine:
      // repo.merge(head: "myBranch")
    }
}

Is this a bug or am I missing something?

Thanks.

@mb720 mb720 changed the title Could not find property MergeOP Could not find property MergeOp Apr 17, 2014
@ajoberstar
Copy link
Owner

The *Op classes aren't in the org.ajoberstar.grgit package. You'll need to import org.ajoberstar.grgit.operation.* too.

@mb720 mb720 closed this as completed Apr 24, 2014
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

No branches or pull requests

2 participants