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:
authorToon Claes <toon@gitlab.com>2022-01-26 17:09:16 +0300
committerToon Claes <toon@gitlab.com>2022-01-26 17:12:54 +0300
commit9d39c59ff546a09b4b5f08eba48d0a841b634328 (patch)
tree60108cf56129b768b4869316373e262620f9406c /internal/gitaly/linguist/linguist.go
parent3dbda28aaba205330f05c7eb852230330dce76c4 (diff)
linguist: Pass on BUNDLE_USER_CONFIG if set
Similar to the recent changes in rubyserver, this change exports BUNDLE_USER_CONFIG when launching git-linguist. Some users might have set it to a non-default location, and that config file might contain a BUNDLE_PATH.
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 64e1c1274..fdd7ee6e7 100644
--- a/internal/gitaly/linguist/linguist.go
+++ b/internal/gitaly/linguist/linguist.go
@@ -15,7 +15,7 @@ import (
"gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config"
)
-var exportedEnvVars = []string{"HOME", "PATH", "GEM_HOME", "BUNDLE_PATH", "BUNDLE_APP_CONFIG"}
+var exportedEnvVars = []string{"HOME", "PATH", "GEM_HOME", "BUNDLE_PATH", "BUNDLE_APP_CONFIG", "BUNDLE_USER_CONFIG"}
// Language is used to parse Linguist's language.json file.
type Language struct {