diff options
author | Unknwon <u@gogs.io> | 2017-02-16 06:28:37 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-16 06:28:37 -0500 |
commit | 88143f1934af6e2d1e2e4f260a9dc08f836437ca (patch) | |
tree | 5ffcc96fb7dd62da0d88359dd474c04dc599da4d /models/wiki.go | |
parent | 3137665e6eb2626e7f05b083ce14bbbcd78f41b3 (diff) |
models/repo: UpdateLocalCopy should always aceept valid branch name
Diffstat (limited to 'models/wiki.go')
-rw-r--r-- | models/wiki.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/models/wiki.go b/models/wiki.go index 4f754f80..20285e3d 100644 --- a/models/wiki.go +++ b/models/wiki.go @@ -76,9 +76,7 @@ func (repo *Repository) LocalWikiPath() string { // UpdateLocalWiki makes sure the local copy of repository wiki is up-to-date. func (repo *Repository) UpdateLocalWiki() error { - // Don't pass branch name here because it fails to clone and - // checkout to a specific branch when wiki is an empty repository. - return UpdateLocalCopyBranch(repo.WikiPath(), repo.LocalWikiPath(), "") + return UpdateLocalCopyBranch(repo.WikiPath(), repo.LocalWikiPath(), "master", true) } func discardLocalWikiChanges(localPath string) error { |