mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
Merge GIT_TERMINAL_PROMPT with the current env
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user