diff options
Diffstat (limited to 'http_handle_repo_raw.go')
-rw-r--r-- | http_handle_repo_raw.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http_handle_repo_raw.go b/http_handle_repo_raw.go index 3a4e152..570030f 100644 --- a/http_handle_repo_raw.go +++ b/http_handle_repo_raw.go @@ -15,16 +15,16 @@ import ( // httpHandleRepoRaw serves raw files, or directory listings that point to raw // files. -func httpHandleRepoRaw(writer http.ResponseWriter, request *http.Request, params map[string]any) { +func (s *server) httpHandleRepoRaw(writer http.ResponseWriter, request *http.Request, params map[string]any) { repoName := params["repo_name"].(string) groupPath := params["group_path"].([]string) rawPathSpec := params["rest"].(string) pathSpec := strings.TrimSuffix(rawPathSpec, "/") params["path_spec"] = pathSpec - _, repoPath, _, _, _, _, _ := getRepoInfo(request.Context(), groupPath, repoName, "") + _, repoPath, _, _, _, _, _ := s.getRepoInfo(request.Context(), groupPath, repoName, "") - client, err := git2c.NewClient(config.Git.Socket) + client, err := git2c.NewClient(s.config.Git.Socket) if err != nil { errorPage500(writer, params, err.Error()) return |