aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r--routers/repo/setting.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index a586bc02..95cce36b 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -404,6 +404,10 @@ func UpdateDefaultBranch(ctx *context.Context) {
ctx.Handle(500, "SetDefaultBranch", err)
return
}
+
+ ctx.Flash.Warning(ctx.Tr("repo.settings.update_default_branch_unsupported"))
+ ctx.Redirect(ctx.Repo.RepoLink + "/settings/branches")
+ return
}
}