We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c20d20a commit 95ba2feCopy full SHA for 95ba2fe
indra-git/src/main/java/net/kyori/indra/git/RepositoryValueSource.java
@@ -62,7 +62,7 @@ public RepositoryValueSource() {
62
@Override
63
public final @Nullable V obtain() {
64
final Parameters params = this.getParameters();
65
- final Git git = GitCache.get(params.getRootDir().get().getAsFile()).git(params.getProjectDir().get().getAsFile(), params.getDisplayName().get());
+ final Git git = GitCache.getOrCreate(params.getRootDir().get().getAsFile()).git(params.getProjectDir().get().getAsFile(), params.getDisplayName().get());
66
if (git == null) return null;
67
68
return this.obtain(git);
0 commit comments