X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/59acf0718d442c05c64ba012b4f48478a4087b7b..68463d51530a921dd965075e1721744c75322703:/services/arv-git-httpd/main.go diff --git a/services/arv-git-httpd/main.go b/services/arv-git-httpd/main.go index dacfec539e..3bd7b3a8aa 100644 --- a/services/arv-git-httpd/main.go +++ b/services/arv-git-httpd/main.go @@ -14,10 +14,11 @@ import ( // Server configuration type Config struct { - Client arvados.Client - Listen string - GitCommand string - RepoRoot string + Client arvados.Client + Listen string + GitCommand string + RepoRoot string + GitoliteHome string } var theConfig = defaultConfig() @@ -39,6 +40,8 @@ func main() { "Path to git or gitolite-shell executable. Each authenticated request will execute this program with a single argument, \"http-backend\"."+deprecated) flag.StringVar(&theConfig.RepoRoot, "repo-root", theConfig.RepoRoot, "Path to git repositories."+deprecated) + flag.StringVar(&theConfig.GitoliteHome, "gitolite-home", theConfig.GitoliteHome, + "Value for GITOLITE_HTTP_HOME environment variable. If not empty, GL_BYPASS_ACCESS_CHECKS=1 will also be set."+deprecated) cfgPath := flag.String("config", defaultCfgPath, "Configuration file `path`.") flag.Usage = usage