Merge GIT_TERMINAL_PROMPT with the current env

This commit is contained in:
morganamilo 2018-07-19 20:52:30 +01:00
parent 0196a47ad2
commit 1d443c0d40
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

2
vcs.go
View file

@ -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