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.
1 parent 1622327 commit 56378c9Copy full SHA for 56378c9
opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java
@@ -673,15 +673,11 @@ private String getGitDirValue(File dotGit) {
673
while (scanner.hasNextLine()) {
674
String line = scanner.nextLine();
675
if (line.startsWith(Constants.GITDIR)) {
676
- String[] array = line.split(": ");
677
- if (array.length == 2) {
678
- return array[1];
679
- }
+ return line.substring(Constants.GITDIR.length());
680
}
681
682
} catch (IOException e) {
683
LOGGER.log(Level.WARNING, "failed to scan the contents of file ''{0}''", dotGit);
684
- return null;
685
686
687
return null;
0 commit comments