Przeglądaj źródła

Merge pull request #44345 from thaJeztah/22.06_backport_go1.18_compat

[22.06 backport] builder/remotecontext/git: allow building on go1.18
Sebastiaan van Stijn 2 lat temu
rodzic
commit
5aac513617
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      builder/remotecontext/git/gitutils.go

+ 1 - 1
builder/remotecontext/git/gitutils.go

@@ -213,7 +213,7 @@ func (repo gitRepo) gitWithinDir(dir string, args ...string) ([]byte, error) {
 	cmd := exec.Command("git", args...)
 	cmd.Dir = dir
 	// Disable unsafe remote protocols.
-	cmd.Env = append(cmd.Environ(), "GIT_PROTOCOL_FROM_USER=0")
+	cmd.Env = append(os.Environ(), "GIT_PROTOCOL_FROM_USER=0")
 
 	if repo.isolateConfig {
 		cmd.Env = append(cmd.Env,