mirror of
https://github.com/Jguer/yay
synced 2024-10-05 23:59:13 +00:00
Merge GIT_TERMINAL_PROMPT with the current env
This commit is contained in:
parent
0196a47ad2
commit
1d443c0d40
2
vcs.go
2
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
|
||||
|
|
Loading…
Reference in a new issue