From 1d443c0d40eba95d7b402d7deb7fc310e17fe3d0 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Thu, 19 Jul 2018 20:52:30 +0100 Subject: [PATCH] Merge GIT_TERMINAL_PROMPT with the current env --- vcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcs.go b/vcs.go index 139656e3..1dd34ac0 100644 --- a/vcs.go +++ b/vcs.go @@ -135,7 +135,7 @@ func updateVCSData(pkgName string, sources []gosrc.ArchString) { func getCommit(url string, branch string, protocols []string) string { for _, protocol := range protocols { cmd := passToGit("ls-remote", protocol+"://"+url, branch) - cmd.Env = append(cmd.Env, "GIT_TERMINAL_PROMPT=0") + cmd.Env = append(os.Environ(), "GIT_TERMINAL_PROMPT=0") stdout, _, err := capture(cmd) if err != nil { continue