mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-10-31 18:46:28 +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){
|
if(!workDir.exists){
|
||||||
Git.cloneRepository
|
Git.cloneRepository
|
||||||
.setURI(Directory.getWikiRepositoryDir(owner, repository).toURI.toString)
|
.setURI(Directory.getWikiRepositoryDir(owner, repository).toURI.toString)
|
||||||
.setDirectory(workDir)
|
.setDirectory(workDir)
|
||||||
.call
|
.call
|
||||||
} else {
|
} else {
|
||||||
val git = Git.open(workDir).pull()
|
Git.open(workDir).pull.call
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user