Ver Fonte

[GinS] Indexing needs repo full name not full path

cgars há 7 anos atrás
pai
commit
f0e490a5f4
1 ficheiros alterados com 1 adições e 1 exclusões
  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) {
 	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)