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

Commit

Permalink
Merge pull request #141 from kamilchm/no-git-askpass
Browse files Browse the repository at this point in the history
Don't show any git password prompt
  • Loading branch information
sdboyer authored Jan 12, 2017
2 parents 2e67c68 + bddffad commit 65939b4
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 65939b4

Please sign in to comment.