소스 검색

[GinS] Indexing needs repo full name not full path

cgars 7 년 전
부모
커밋
a982f64cba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/repo_editor.go

+ 1 - 1
models/repo_editor.go

@@ -575,7 +575,7 @@ func (repo *Repository) UploadRepoFiles(doer *User, opts UploadRepoFileOptions)
 func StartIndexing(user, owner *User, repo *Repository) {
 	var ireq struct{ RepoID, RepoPath string }
 	ireq.RepoID = fmt.Sprintf("%d", repo.ID)
-	ireq.RepoPath = repo.RepoPath()
+	ireq.RepoPath = repo.FullName()
 	data, err := json.Marshal(ireq)
 	if err != nil {
 		log.Trace("could not marshal index request :%+v", err)