diff --git a/gitea/repo.go b/gitea/repo.go index 62d13a3..9fa0545 100644 --- a/gitea/repo.go +++ b/gitea/repo.go @@ -329,10 +329,10 @@ func (opt CreateRepoOption) Validate(c *Client) error { return fmt.Errorf("name has more than 100 chars") } if len(opt.Description) > 255 { - return fmt.Errorf("name has more than 255 chars") + return fmt.Errorf("description has more than 255 chars") } if len(opt.DefaultBranch) > 100 { - return fmt.Errorf("name has more than 100 chars") + return fmt.Errorf("default branch name has more than 100 chars") } if len(opt.TrustModel) != 0 { if err := c.checkServerVersionGreaterThanOrEqual(version1_13_0); err != nil {