Merge pull request #453 from Morganamilo/fix#451

Disable git terminal prompt
This commit is contained in:
Anna 2018-06-02 13:58:48 +01:00 committed by GitHub
commit 3eb89aac7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func getPkgbuilds(pkgs []string) error {
}
// 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()
if err != nil {
return

1
vcs.go
View File

@ -136,6 +136,7 @@ func getCommit(url string, branch string, protocols []string) string {
cmd := exec.Command(config.GitBin, "ls-remote", protocol+"://"+url, branch)
cmd.Stdout = &outbuf
cmd.Env = append(cmd.Env, "GIT_TERMINAL_PROMPT=0")
err := cmd.Start()
if err != nil {