Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

Commit

Permalink
Don't show any git password prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchm committed Jan 12, 2017
1 parent 2e67c68 commit bddffad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vcs_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ func (s *gitSource) doListVersions() (vlist []Version, err error) {
r := s.crepo.r
var out []byte
c := exec.Command("git", "ls-remote", r.Remote())
// Ensure no terminal prompting for PWs
c.Env = mergeEnvLists([]string{"GIT_TERMINAL_PROMPT=0"}, os.Environ())
// Ensure no prompting for PWs
c.Env = mergeEnvLists([]string{"GIT_ASKPASS=", "GIT_TERMINAL_PROMPT=0"}, os.Environ())
out, err = c.CombinedOutput()

all := bytes.Split(bytes.TrimSpace(out), []byte("\n"))
Expand Down

0 comments on commit bddffad

Please sign in to comment.