diff --git a/scm/github/repo.go b/scm/github/repo.go index a6813bf81..11d5ee002 100644 --- a/scm/github/repo.go +++ b/scm/github/repo.go @@ -577,6 +577,7 @@ func (c *client) GetBranch(ctx context.Context, u *library.User, r *library.Repo client := c.newClientToken(u.GetToken()) maxRedirects := 3 + data, _, err := client.Repositories.GetBranch(ctx, r.GetOrg(), r.GetName(), branch, maxRedirects) if err != nil { return "", "", err