Skip to content

Commit aa759ec

Browse files
author
Vladimir Kotal
committed
use DOT_GIT
1 parent 930fd0a commit aa759ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/GitRepositoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ private String addSubmodule(String submoduleName) throws Exception {
802802

803803
// Add this repository as a submodule to the existing Git repository.
804804
org.eclipse.jgit.lib.Repository mainRepo = new FileRepositoryBuilder().
805-
setGitDir(Paths.get(repository.getSourceRoot(), "git", ".git").toFile())
805+
setGitDir(Paths.get(repository.getSourceRoot(), "git", Constants.DOT_GIT).toFile())
806806
.build();
807807
try (Git git = new Git(mainRepo)) {
808808
git.submoduleAdd().

0 commit comments

Comments
 (0)