summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/main.go b/main.go
index 4546ede..4781376 100644
--- a/main.go
+++ b/main.go
@@ -41,6 +41,15 @@ func main() {
gitMux := mux.NewRouter()
+ git.New(git.Options{
+ CGI: cfg.Git.CGI,
+ ReposRoot: cfg.ReposRoot,
+ ExportAll: cfg.Git.ExportAll,
+ Logger: logger.With("handler", "git"),
+ }).
+ WithRegister(RegistererFunc(gitMux.Handle)).
+ Build()
+
cgit.New(cgit.Options{
CGI: cfg.CGit.CGI,
ReposRoot: cfg.ReposRoot,
@@ -51,15 +60,6 @@ func main() {
WithRegister(RegistererFunc(gitMux.Handle)).
Build()
- git.New(git.Options{
- CGI: cfg.Git.CGI,
- ReposRoot: cfg.ReposRoot,
- ExportAll: cfg.Git.ExportAll,
- Logger: logger.With("handler", "git"),
- }).
- WithRegister(RegistererFunc(gitMux.Handle)).
- Build()
-
m := manager.New()
m.Add(&server.Server{
Name: "git",