Skip to content

Commit 9317173

Browse files
author
Vladimir Kotal
committed
use DOT_GIT
1 parent 0b6ba3e commit 9317173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public boolean fileHasHistory(File file) {
404404
@Override
405405
boolean isRepositoryFor(File file, CommandTimeoutType cmdType) {
406406
if (file.isDirectory()) {
407-
File f = new File(file, ".git");
407+
File f = new File(file, Constants.DOT_GIT);
408408
// No check for directory or file as submodules contain '.git' file.
409409
return f.exists();
410410
}

0 commit comments

Comments
 (0)