Pull to the working copy of the wiki repository before modifying.

This commit is contained in:
takezoe
2013-06-16 02:41:26 +09:00
parent 5875772c21
commit c3a4c36ac2

View File

@@ -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
}
}