19 flag.StringVar(&theConfig.Addr, "address", "0.0.0.0:80",
20 "Address to listen on, \"host:port\".")
21 flag.StringVar(&theConfig.GitCommand, "git-command", "/usr/bin/git",
22 "Path to git executable. Each authenticated request will execute this program with a single argument, \"http-backend\".")
23 cwd, err := os.Getwd()
25 log.Fatalln("Getwd():", err)
27 flag.StringVar(&theConfig.Root, "repo-root", cwd,
28 "Path to git repositories.")
34 if err := srv.Start(); err != nil {
37 log.Println("Listening at", srv.Addr)
38 if err := srv.Wait(); err != nil {