File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
indra-git/src/main/java/net/kyori/indra/git Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11/*
22 * This file is part of indra, licensed under the MIT License.
33 *
4- * Copyright (c) 2024 KyoriPowered
4+ * Copyright (c) 2024-2025 KyoriPowered
55 *
66 * Permission is hereby granted, free of charge, to any person obtaining a copy
77 * of this software and associated documentation files (the "Software"), to deal
@@ -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 );
You can’t perform that action at this time.
0 commit comments