8282import org .opengrok .indexer .configuration .CommandTimeoutType ;
8383import org .opengrok .indexer .configuration .RuntimeEnvironment ;
8484import org .opengrok .indexer .logger .LoggerFactory ;
85- import org .opengrok .indexer .util .Executor ;
8685import org .opengrok .indexer .util .ForbiddenSymlinkException ;
8786import org .opengrok .indexer .util .LazilyInstantiate ;
8887
@@ -97,20 +96,6 @@ public class GitRepository extends RepositoryWithPerPartesHistory {
9796 private static final Logger LOGGER = LoggerFactory .getLogger (GitRepository .class );
9897
9998 private static final long serialVersionUID = -6126297612958508386L ;
100- /**
101- * The property name used to obtain the client command for this repository.
102- */
103- public static final String CMD_PROPERTY_KEY = "org.opengrok.indexer.history.git" ;
104- /**
105- * The command to use to access the repository if none was given explicitly.
106- */
107- public static final String CMD_FALLBACK = "git" ;
108-
109- /**
110- * Arguments to shorten git IDs.
111- */
112- private static final int CSET_LEN = 8 ;
113- private static final String ABBREV_LOG = "--abbrev=" + CSET_LEN ;
11499
115100 /**
116101 * This is a static replacement for 'working' field. Effectively, check if git is working once in a JVM
@@ -129,9 +114,7 @@ public GitRepository() {
129114 }
130115
131116 private static boolean isGitWorking () {
132- String repoCommand = getCommand (GitRepository .class , CMD_PROPERTY_KEY , CMD_FALLBACK );
133- Executor exec = new Executor (new String [] {repoCommand , "--version" });
134- return (exec .exec (false ) == 0 );
117+ return true ;
135118 }
136119
137120 /**
0 commit comments