Merge GIT_TERMINAL_PROMPT with the current env

This commit is contained in:
morganamilo committed 2018-07-19 20:52:30 +01:00
1 parent 0196a47ad2
commit 1d443c0d40
1 file changed
+1 -1
+1 -1
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