Fix deadlock when sqlite (#5118)

* fix deadlock when sqlite

* fix clonelink deadlock on sqlite
This commit is contained in:
Lunny Xiao 2018-10-20 00:36:42 +08:00 committed by techknowlogick
parent 47e4efe0c5
commit 616b8f42f9
2 changed files with 18 additions and 14 deletions

View file

@ -57,7 +57,7 @@ func WikiFilenameToName(filename string) (string, error) {
// WikiCloneLink returns clone URLs of repository wiki.
func (repo *Repository) WikiCloneLink() *CloneLink {
return repo.cloneLink(true)
return repo.cloneLink(x, true)
}
// WikiPath returns wiki data path by given user and repository name.