mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix compilation
This commit is contained in:
@@ -97,6 +97,12 @@ fun createBareRepository(dir: File): Repository {
|
||||
return repository
|
||||
}
|
||||
|
||||
fun createRepository(dir: File): Repository {
|
||||
val repository = FileRepositoryBuilder().setWorkTree(dir).build()
|
||||
repository.create()
|
||||
return repository
|
||||
}
|
||||
|
||||
fun Repository.commit(message: String? = null, reflogComment: String? = null, author: PersonIdent? = null, committer: PersonIdent? = null): RevCommit {
|
||||
val commitCommand = CommitCommand(this).setAuthor(author).setCommitter(committer)
|
||||
if (message != null) {
|
||||
|
||||
Reference in New Issue
Block a user