Unknwon 9 년 전
부모
커밋
9ed60d96a9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/wiki.go

+ 1 - 1
models/wiki.go

@@ -129,7 +129,7 @@ func (repo *Repository) updateWikiPage(doer *User, oldTitle, title, content, mes
 	if com.IsExist(localPath) {
 		// No need to check if nothing in the repository.
 		if git.IsBranchExist(localPath, "master") {
-			if err = git.Reset(localPath, true, "origin/master"); err != nil {
+			if err = git.ResetHEAD(localPath, true, "origin/master"); err != nil {
 				return fmt.Errorf("Reset: %v", err)
 			}
 		}