Skip to content

Commit 42349cc

Browse files
committed
Populate GitCache from RepositoryValueSource when needed (i.e. config cache is reused so the map is not populated as configuration did not run)
1 parent 5ed575f commit 42349cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indra-git/src/main/java/net/kyori/indra/git/RepositoryValueSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public RepositoryValueSource() {
6262
@Override
6363
public final @Nullable V obtain() {
6464
final Parameters params = this.getParameters();
65-
final Git git = GitCache.get(params.getRootDir().get().getAsFile()).git(params.getProjectDir().get().getAsFile(), params.getDisplayName().get());
65+
final Git git = GitCache.getOrCreate(params.getRootDir().get().getAsFile()).git(params.getProjectDir().get().getAsFile(), params.getDisplayName().get());
6666
if (git == null) return null;
6767

6868
return this.obtain(git);

0 commit comments

Comments
 (0)