get netrc data when hook is triggering

This commit is contained in:
Brad Rydzewski
2015-04-28 15:08:21 -07:00
parent 67a4e302c7
commit b84943222b
4 changed files with 31 additions and 9 deletions

View File

@@ -152,7 +152,7 @@ func (g *GitHub) Script(u *common.User, r *common.Repo, b *common.Build) ([]byte
// Netrc returns a .netrc file that can be used to clone
// private repositories from a remote system.
func (g *GitHub) Netrc(u *common.User, r *common.Repo) (*common.Netrc, error) {
func (g *GitHub) Netrc(u *common.User) (*common.Netrc, error) {
url_, err := url.Parse(g.URL)
if err != nil {
return nil, err