Skip to content

Commit

Permalink
Fix for use of dir instead of currentDir
Browse files Browse the repository at this point in the history
GrgitService was incorrectly using getCurrentDirectory() instead of
getDirectory() when getCurrentDirectory() is not set.
  • Loading branch information
ajoberstar committed Feb 10, 2022
1 parent 6e14884 commit 0354fa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0354fa7

Please sign in to comment.