Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Bugfix govendor panic when git show returned warning in stderr #415

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion vcs/git.go
Expand Up @@ -40,7 +40,8 @@ func (VcsGit) Find(dir string) (*VcsInfo, error) {
cmd = exec.Command("git", "show", "--pretty=format:%H@%ai", "-s")

cmd.Dir = dir
output, err := cmd.CombinedOutput()
cmd.Stderr = nil
output, err := cmd.Output()
if err != nil {
return nil, err
}
Expand Down