override fun build()

in bunch-cli/src/main/kotlin/org/jetbrains/bunches/git/git.kt [95:102]


    override fun build(): Repository {
        val repo = FileRepository(this.setup())
        return if (this.isMustExist && !repo.objectDatabase.exists()) {
            throw RepositoryNotFoundException(this.gitDir)
        } else {
            repo
        }
    }