mirror of
https://github.com/Jguer/yay.git
synced 2025-10-06 00:05:37 -04: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…
x
Reference in New Issue
Block a user