X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/16421a1aa8d420728b51d7cbb1b006a5613f8697..9fd9565ea0411b43943076add49d5bca2da8e379:/services/arv-git-httpd/main.go diff --git a/services/arv-git-httpd/main.go b/services/arv-git-httpd/main.go index 47758f6867..452390cbc3 100644 --- a/services/arv-git-httpd/main.go +++ b/services/arv-git-httpd/main.go @@ -26,6 +26,14 @@ func init() { } flag.StringVar(&theConfig.Root, "repo-root", cwd, "Path to git repositories.") + + // MakeArvadosClient returns an error if token is unset (even + // though we don't need to do anything requiring + // authentication yet). We can't do this in newArvadosClient() + // just before calling MakeArvadosClient(), though, because + // that interferes with the env var needed by "run test + // servers". + os.Setenv("ARVADOS_API_TOKEN", "xxx") } func main() { @@ -35,6 +43,7 @@ func main() { log.Fatal(err) } log.Println("Listening at", srv.Addr) + log.Println("Repository root", theConfig.Root) if err := srv.Wait(); err != nil { log.Fatal(err) }