Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2222 from weaveworks/issue/2119-allow-google-clou…
Browse files Browse the repository at this point in the history
…dsdk-env

Allow Google Cloud SDK env entries for git
  • Loading branch information
squaremo committed Jul 10, 2019
1 parent ede3e65 commit d6f7fd0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions git/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ var exemptedTraceCommands = []string{
// "config",
}

// Env vars that are allowed to be inherited from the os
var allowedEnvVars = []string{"http_proxy", "https_proxy", "no_proxy", "HOME", "GNUPGHOME"}
// Env vars that are allowed to be inherited from the OS
var allowedEnvVars = []string{
// these are for people using (no) proxies
"http_proxy", "https_proxy", "no_proxy",
// these are needed for GPG to find its files
"HOME", "GNUPGHOME",
// these are for Google Cloud SDK to find its files (which will
// have to be mounted, if running in a container)
"CLOUDSDK_CONFIG", "CLOUDSDK_PYTHON",
}

type gitCmdConfig struct {
dir string
Expand Down

0 comments on commit d6f7fd0

Please sign in to comment.