aboutsummaryrefslogtreecommitdiff
path: root/routes/repo/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/repo/pull.go')
-rw-r--r--routes/repo/pull.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/repo/pull.go b/routes/repo/pull.go
index 58f0a49a..80ca9387 100644
--- a/routes/repo/pull.go
+++ b/routes/repo/pull.go
@@ -126,6 +126,8 @@ func ForkPost(c *context.Context, f form.CreateRepo) {
if err != nil {
c.Data["Err_RepoName"] = true
switch {
+ case errors.IsReachLimitOfRepo(err):
+ c.RenderWithErr(c.Tr("repo.form.reach_limit_of_creation", c.User.RepoCreationNum()), FORK, &f)
case models.IsErrRepoAlreadyExist(err):
c.RenderWithErr(c.Tr("repo.settings.new_owner_has_same_repo"), FORK, &f)
case models.IsErrNameReserved(err):