File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/org/opensolaris/opengrok/history Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -540,16 +540,18 @@ static Boolean checkCmd(String... args) {
540
540
* @see #RepoCommand
541
541
*/
542
542
protected String ensureCommand (String propertyKey , String fallbackCommand ) {
543
+ RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
544
+
543
545
if (RepoCommand != null ) {
544
546
return RepoCommand ;
545
547
}
546
- RepoCommand = RuntimeEnvironment . getInstance ()
547
- .getRepoCmd (this .getClass ().getCanonicalName ());
548
+
549
+ RepoCommand = env .getRepoCmd (this .getClass ().getCanonicalName ());
548
550
if (RepoCommand == null ) {
549
551
RepoCommand = System .getProperty (propertyKey , fallbackCommand );
550
- RuntimeEnvironment .getInstance ()
551
- .setRepoCmd (this .getClass ().getCanonicalName (), RepoCommand );
552
+ env .setRepoCmd (this .getClass ().getCanonicalName (), RepoCommand );
552
553
}
554
+
553
555
return RepoCommand ;
554
556
}
555
557
You can’t perform that action at this time.
0 commit comments