X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4689cec4c94dbbfcf990250e15ae6e822f9fd170..0eb72b526bf8bbb011551ecf019f604e17a534f1:/services/arv-git-httpd/gitolite_test.go diff --git a/services/arv-git-httpd/gitolite_test.go b/services/arv-git-httpd/gitolite_test.go index 74c2b8cf4d..f06b1ac971 100644 --- a/services/arv-git-httpd/gitolite_test.go +++ b/services/arv-git-httpd/gitolite_test.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main import ( @@ -48,9 +52,10 @@ func (s *GitoliteSuite) SetUpTest(c *check.C) { APIHost: arvadostest.APIHost(), Insecure: true, }, - Listen: ":0", - GitCommand: "/usr/share/gitolite3/gitolite-shell", - RepoRoot: s.tmpRepoRoot, + Listen: ":0", + GitCommand: "/usr/share/gitolite3/gitolite-shell", + GitoliteHome: s.gitoliteHome, + RepoRoot: s.tmpRepoRoot, } s.IntegrationSuite.SetUpTest(c) @@ -58,9 +63,6 @@ func (s *GitoliteSuite) SetUpTest(c *check.C) { // (*IntegrationTest)SetUpTest() -- see 2.2.4 at // http://gitolite.com/gitolite/gitolite.html runGitolite("gitolite", "setup") - - os.Setenv("GITOLITE_HTTP_HOME", s.gitoliteHome) - os.Setenv("GL_BYPASS_ACCESS_CHECKS", "1") } func (s *GitoliteSuite) TearDownTest(c *check.C) {