mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Merge pull request #453 from Morganamilo/fix#451
Disable git terminal prompt
This commit is contained in:
commit
3eb89aac7f
@ -149,7 +149,7 @@ func getPkgbuilds(pkgs []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetPkgbuild downloads pkgbuild from the ABS.
|
// GetPkgbuild downloads pkgbuild from the ABS.
|
||||||
func getPkgbuildsfromABS(pkgs []string, path string) (missing bool,err error) {
|
func getPkgbuildsfromABS(pkgs []string, path string) (missing bool, err error) {
|
||||||
dbList, err := alpmHandle.SyncDbs()
|
dbList, err := alpmHandle.SyncDbs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
1
vcs.go
1
vcs.go
@ -136,6 +136,7 @@ func getCommit(url string, branch string, protocols []string) string {
|
|||||||
|
|
||||||
cmd := exec.Command(config.GitBin, "ls-remote", protocol+"://"+url, branch)
|
cmd := exec.Command(config.GitBin, "ls-remote", protocol+"://"+url, branch)
|
||||||
cmd.Stdout = &outbuf
|
cmd.Stdout = &outbuf
|
||||||
|
cmd.Env = append(cmd.Env, "GIT_TERMINAL_PROMPT=0")
|
||||||
|
|
||||||
err := cmd.Start()
|
err := cmd.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user