Skip to content

Commit

Permalink
fix: low level bug of gitlab v3 version (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
caicloud-bot authored Jul 11, 2019
1 parent 745b76e commit 13806ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/biz/scm/gitlab/gitlabv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (g *V3) listReposInner(listAll bool) ([]scm.Repository, error) {
// ListBranches lists the branches for specified repo.
// Only return first 20 branches, will not support listing all branches as v3 api has been deprecated.
func (g *V3) ListBranches(repo string) ([]string, error) {
branches, resp, err := g.client.Branches.ListBranches(repo, nil)
branches, resp, err := g.client.Branches.ListBranches(repo)
if err != nil {
log.Errorf("Fail to list branches for %s", repo)
return nil, convertGitlabV3Error(err, resp)
Expand All @@ -111,7 +111,7 @@ func (g *V3) ListBranches(repo string) ([]string, error) {
// ListTags lists the tags for specified repo.
// Only return first 20 tags, will not support listing all tags as v3 api has been deprecated.
func (g *V3) ListTags(repo string) ([]string, error) {
tags, resp, err := g.client.Tags.ListTags(repo, nil)
tags, resp, err := g.client.Tags.ListTags(repo)
if err != nil {
log.Errorf("Fail to list tags for %s", repo)
return nil, convertGitlabV3Error(err, resp)
Expand Down

0 comments on commit 13806ae

Please sign in to comment.