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){ 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
} }
} }