diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-06 08:35:58 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-06 08:35:58 +0800 |
commit | 7daf45b862b8f53ecabc969615437994edb49fe8 (patch) | |
tree | 1cc369adae791ecb5130d8d9cd2307ebb639cc34 /internal/unsorted | |
parent | Makefile: Silence that bunch of mkdir and cp (diff) | |
download | forge-0.1.31.tar.gz forge-0.1.31.tar.zst forge-0.1.31.zip |
git2c, git2d: Rename cmd1 and cmd2 descriptivelyv0.1.31
Diffstat (limited to 'internal/unsorted')
-rw-r--r-- | internal/unsorted/http_handle_repo_index.go | 2 | ||||
-rw-r--r-- | internal/unsorted/http_handle_repo_raw.go | 2 | ||||
-rw-r--r-- | internal/unsorted/http_handle_repo_tree.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/internal/unsorted/http_handle_repo_index.go b/internal/unsorted/http_handle_repo_index.go index f2bb480..03eed77 100644 --- a/internal/unsorted/http_handle_repo_index.go +++ b/internal/unsorted/http_handle_repo_index.go @@ -25,7 +25,7 @@ func (s *Server) httpHandleRepoIndex(w http.ResponseWriter, req *http.Request, p } defer client.Close() - commits, readme, err := client.Cmd1(repoPath) + commits, readme, err := client.CmdIndex(repoPath) if err != nil { web.ErrorPage500(s.templates, w, params, err.Error()) return diff --git a/internal/unsorted/http_handle_repo_raw.go b/internal/unsorted/http_handle_repo_raw.go index 7849d48..3d999e5 100644 --- a/internal/unsorted/http_handle_repo_raw.go +++ b/internal/unsorted/http_handle_repo_raw.go @@ -32,7 +32,7 @@ func (s *Server) httpHandleRepoRaw(writer http.ResponseWriter, request *http.Req } defer client.Close() - files, content, err := client.Cmd2(repoPath, pathSpec) + files, content, err := client.CmdTreeRaw(repoPath, pathSpec) if err != nil { web.ErrorPage500(s.templates, writer, params, err.Error()) return diff --git a/internal/unsorted/http_handle_repo_tree.go b/internal/unsorted/http_handle_repo_tree.go index cbbba98..96920f6 100644 --- a/internal/unsorted/http_handle_repo_tree.go +++ b/internal/unsorted/http_handle_repo_tree.go @@ -33,7 +33,7 @@ func (s *Server) httpHandleRepoTree(writer http.ResponseWriter, request *http.Re } defer client.Close() - files, content, err := client.Cmd2(repoPath, pathSpec) + files, content, err := client.CmdTreeRaw(repoPath, pathSpec) if err != nil { web.ErrorPage500(s.templates, writer, params, err.Error()) return |