Skip to content

Commit 0b6ba3e

Browse files
author
Vladimir Kotal
committed
replace origin with constant
1 parent c8a8f1d commit 0b6ba3e

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
@@ -797,7 +797,7 @@ private RevCommit getCommit(org.eclipse.jgit.lib.Repository repository, Ref ref)
797797
String determineParent(CommandTimeoutType cmdType) throws IOException {
798798
try (org.eclipse.jgit.lib.Repository repository = getJGitRepository(getDirectoryName())) {
799799
if (repository.getConfig() != null) {
800-
return repository.getConfig().getString("remote", "origin", "url");
800+
return repository.getConfig().getString("remote", Constants.DEFAULT_REMOTE_NAME, "url");
801801
} else {
802802
return null;
803803
}

0 commit comments

Comments
 (0)