From 0354fa708748827985b9103b708fee2cb83bc089 Mon Sep 17 00:00:00 2001 From: Andrew Oberstar Date: Wed, 9 Feb 2022 18:52:41 -0600 Subject: [PATCH] Fix for use of dir instead of currentDir GrgitService was incorrectly using getCurrentDirectory() instead of getDirectory() when getCurrentDirectory() is not set. --- .../src/main/java/org/ajoberstar/grgit/gradle/GrgitService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);