Disable git terminal prompt

This allows requests that want authentication to fail instantly and
silently. Rather than delying the program and printing to the terminal.
This commit is contained in:
morganamilo 2018-06-02 13:52:18 +01:00
parent 5b6c4101f8
commit c4d319268c
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E
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 {