diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 21:47:44 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 21:47:44 +0800 |
commit | efa6f33b4c67f64a4a8d8cd723b9bbc9494fc735 (patch) | |
tree | c4075c78bc4126d764f91ec68931c34281913dcc /http_handle_repo_upload_pack.go | |
parent | Add missing copyright headers (diff) | |
download | forge-efa6f33b4c67f64a4a8d8cd723b9bbc9494fc735.tar.gz forge-efa6f33b4c67f64a4a8d8cd723b9bbc9494fc735.tar.zst forge-efa6f33b4c67f64a4a8d8cd723b9bbc9494fc735.zip |
Unexport fields in Serverv0.1.24
Diffstat (limited to 'http_handle_repo_upload_pack.go')
-rw-r--r-- | http_handle_repo_upload_pack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_repo_upload_pack.go b/http_handle_repo_upload_pack.go index 4c7291b..475c0a2 100644 --- a/http_handle_repo_upload_pack.go +++ b/http_handle_repo_upload_pack.go @@ -24,7 +24,7 @@ func (s *Server) httpHandleUploadPack(writer http.ResponseWriter, request *http. groupPath, repoName = params["group_path"].([]string), params["repo_name"].(string) - if err := s.Database.QueryRow(request.Context(), ` + if err := s.database.QueryRow(request.Context(), ` WITH RECURSIVE group_path_cte AS ( -- Start: match the first name in the path where parent_group IS NULL SELECT @@ -67,7 +67,7 @@ func (s *Server) httpHandleUploadPack(writer http.ResponseWriter, request *http. writer.WriteHeader(http.StatusOK) cmd = exec.Command("git", "upload-pack", "--stateless-rpc", repoPath) - cmd.Env = append(os.Environ(), "LINDENII_FORGE_HOOKS_SOCKET_PATH="+s.Config.Hooks.Socket) + cmd.Env = append(os.Environ(), "LINDENII_FORGE_HOOKS_SOCKET_PATH="+s.config.Hooks.Socket) if stdout, err = cmd.StdoutPipe(); err != nil { return err } |