aboutsummaryrefslogtreecommitdiff
path: root/git_misc.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 21:19:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 21:19:55 +0800
commit9c4f62a4a0705657404745c84d9ba9472d32def5 (patch)
tree08d4b42a2a826228af5e38b846465f745421aa65 /git_misc.go
parentresources: Serve source and static properly (diff)
downloadforge-9c4f62a4a0705657404745c84d9ba9472d32def5.tar.gz
forge-9c4f62a4a0705657404745c84d9ba9472d32def5.tar.zst
forge-9c4f62a4a0705657404745c84d9ba9472d32def5.zip
*: category -> group
Diffstat (limited to 'git_misc.go')
-rw-r--r--git_misc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/git_misc.go b/git_misc.go
index 64d1ff5..984d0f2 100644
--- a/git_misc.go
+++ b/git_misc.go
@@ -11,8 +11,8 @@ import (
"go.lindenii.runxiyu.org/lindenii-common/misc"
)
-func open_git_repo(category_name, repo_name string) (*git.Repository, error) {
- return git.PlainOpen(filepath.Join(config.Git.Root, category_name, repo_name+".git"))
+func open_git_repo(group_name, repo_name string) (*git.Repository, error) {
+ return git.PlainOpen(filepath.Join(config.Git.Root, group_name, repo_name+".git"))
}
func build_display_git_tree(tree *object.Tree) []display_git_tree_entry_t {