mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-01 19:15:59 +01:00
Pull to the working copy of the wiki repository before modifying.
This commit is contained in:
@@ -212,10 +212,10 @@ trait WikiService {
|
||||
if(!workDir.exists){
|
||||
Git.cloneRepository
|
||||
.setURI(Directory.getWikiRepositoryDir(owner, repository).toURI.toString)
|
||||
.setDirectory(workDir)
|
||||
.setDirectory(workDir)
|
||||
.call
|
||||
} else {
|
||||
val git = Git.open(workDir).pull()
|
||||
Git.open(workDir).pull.call
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user