aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.go b/main.go
index 75e187f..84458cb 100644
--- a/main.go
+++ b/main.go
@@ -8,6 +8,7 @@ import (
"flag"
"net"
"net/http"
+ "os/exec"
"syscall"
"time"
@@ -31,6 +32,17 @@ func main() {
if err := loadTemplates(); err != nil {
clog.Fatal(1, "Loading templates: "+err.Error())
}
+ if err := deployGit2D(); err != nil {
+ clog.Fatal(1, "Deploying git2d: "+err.Error())
+ }
+
+ // Launch Git2D
+ go func() {
+ cmd := exec.Command(config.Git.DaemonPath, config.Git.Socket) //#nosec G204
+ if err := cmd.Run(); err != nil {
+ panic(err)
+ }
+ }()
// UNIX socket listener for hooks
{