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.
2 parents 5ed575f + 95ba2fe commit 3b68ec1Copy full SHA for 3b68ec1
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