Merge branch '5724-blob-signature-ttl' closes #5724
[arvados.git] / services / arv-git-httpd / main.go
index 47758f6867347900ee8677d09c3d693676ed3732..452390cbc3246a2e1d9c64492917e26f2f6f6a94 100644 (file)
@@ -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)
        }