diff --git a/docs/setup/README.md b/docs/setup/README.md index 971ed620..7be9ff96 100644 --- a/docs/setup/README.md +++ b/docs/setup/README.md @@ -7,9 +7,9 @@ * [Nginx](nginx.md) * Remotes * [GitHub](github.md) - * [GitLab](gitlab.md) * [Bitbucket](bitbucket.md) * [Gogs](gogs.md) + * [GitLab](gitlab.md) * Database * [SQLite](sqlite.md) * [MySQL](mysql.md) diff --git a/remote/bitbucket/client.go b/remote/bitbucket/client.go index 2fd1182f..f5a1cc00 100644 --- a/remote/bitbucket/client.go +++ b/remote/bitbucket/client.go @@ -91,7 +91,6 @@ func (c *Client) ListReposAll(account string) ([]*Repo, error) { for { resp, err := c.ListRepos(account, &ListOpts{Page: page, PageLen: 100}) if err != nil { - println(err.Error()) return repos, err } repos = append(repos, resp.Values...) @@ -173,11 +172,6 @@ func (c *Client) do(rawurl, method string, in, out interface{}) error { err := Error{} json.NewDecoder(resp.Body).Decode(&err) err.Status = resp.StatusCode - - instr, _ := json.Marshal(in) - println(err.Body.Message) - println(string(instr)) - println(uri.String()) return err } diff --git a/store/repos.go b/store/repos.go index 2f0b747a..1a36d116 100644 --- a/store/repos.go +++ b/store/repos.go @@ -57,5 +57,5 @@ func UpdateRepo(c context.Context, repo *model.Repo) error { } func DeleteRepo(c context.Context, repo *model.Repo) error { - return FromContext(c).Repos().Update(repo) + return FromContext(c).Repos().Delete(repo) }