diff --git a/grgit-gradle/src/main/java/org/ajoberstar/grgit/gradle/GrgitService.java b/grgit-gradle/src/main/java/org/ajoberstar/grgit/gradle/GrgitService.java index c10e07d9..1d3d8ff7 100644 --- a/grgit-gradle/src/main/java/org/ajoberstar/grgit/gradle/GrgitService.java +++ b/grgit-gradle/src/main/java/org/ajoberstar/grgit/gradle/GrgitService.java @@ -32,7 +32,7 @@ public GrgitService() { return; } - var dir = getParameters().getCurrentDirectory().get().getAsFile(); + var dir = getParameters().getDirectory().get().getAsFile(); if (dir.exists()) { this.grgit = Grgit.open(op -> { op.setDir(dir);