Explorar o código

[GinS] Indexing needs repo full name not full path

cgars %!s(int64=7) %!d(string=hai) anos
pai
achega
f0e490a5f4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/repo_editor.go

+ 1 - 1
models/repo_editor.go

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