diff --git a/plugins/version-control-systems/git/src/main/kotlin/GitRepo.kt b/plugins/version-control-systems/git/src/main/kotlin/GitRepo.kt index b6d1c9a4bd1e7..efd6da780ce70 100644 --- a/plugins/version-control-systems/git/src/main/kotlin/GitRepo.kt +++ b/plugins/version-control-systems/git/src/main/kotlin/GitRepo.kt @@ -71,7 +71,7 @@ private data class Include( val name: String ) -object GitRepoCommand : CommandLineTool { +internal object GitRepoCommand : CommandLineTool { override fun command(workingDir: File?) = "repo" override fun transformVersion(output: String): String { diff --git a/plugins/version-control-systems/mercurial/src/main/kotlin/Mercurial.kt b/plugins/version-control-systems/mercurial/src/main/kotlin/Mercurial.kt index 602996cc5b379..cab1961d4b09f 100644 --- a/plugins/version-control-systems/mercurial/src/main/kotlin/Mercurial.kt +++ b/plugins/version-control-systems/mercurial/src/main/kotlin/Mercurial.kt @@ -33,7 +33,7 @@ import org.ossreviewtoolkit.utils.common.ProcessCapture const val MERCURIAL_LARGE_FILES_EXTENSION = "largefiles = " const val MERCURIAL_SPARSE_EXTENSION = "sparse = " -object MercurialCommand : CommandLineTool { +internal object MercurialCommand : CommandLineTool { private val versionRegex = Regex("Mercurial .*\\([Vv]ersion (?[\\d.]+)\\)") override fun command(workingDir: File?) = "hg"