UpdateLocalWiki makes sure the local copy of repository wiki is up-to-date.
()
| 85 | |
| 86 | // UpdateLocalWiki makes sure the local copy of repository wiki is up-to-date. |
| 87 | func (r *Repository) UpdateLocalWiki() error { |
| 88 | wikiPath := r.WikiPath() |
| 89 | return UpdateLocalCopyBranch(wikiPath, r.LocalWikiPath(), WikiBranch(wikiPath), true) |
| 90 | } |
| 91 | |
| 92 | func discardLocalWikiChanges(localPath string) error { |
| 93 | return discardLocalRepoBranchChanges(localPath, WikiBranch(localPath)) |
no test coverage detected