Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2020-12-29 12:32:01 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-12-29 12:32:01 +0300
commit1819d66b4a877d29a912a94cc22a555d4e9196d9 (patch)
treef4b00f5c8d431729cce6617e8dfed493bc4847bb /internal/gitaly/linguist/linguist.go
parenteb38a55a5e028ffd57aa8568f930d99e3437ad94 (diff)
Extract config.Config from linguist production code
Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/2699
Diffstat (limited to 'internal/gitaly/linguist/linguist.go')
-rw-r--r--internal/gitaly/linguist/linguist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/linguist/linguist.go b/internal/gitaly/linguist/linguist.go
index 25cc3f840..9356a8af1 100644
--- a/internal/gitaly/linguist/linguist.go
+++ b/internal/gitaly/linguist/linguist.go
@@ -105,7 +105,7 @@ func startGitLinguist(ctx context.Context, cfg config.Cfg, repoPath string, comm
}
cmd := exec.Command(args[0], args[1:]...)
- cmd.Dir = config.Config.Ruby.Dir
+ cmd.Dir = cfg.Ruby.Dir
internalCmd, err := command.New(ctx, cmd, nil, nil, nil, exportEnvironment()...)
if err != nil {