diff.bin=二进制
diff.view_file=查看文件
+release.releases=版本发布
+release.new_release=发布新版
+release.draft=草稿
+release.prerelease=预发行
+release.stable=稳定
+release.edit=编辑
+release.ahead=在该版本发布之后已有 %d 次代码提交到 %s 分支
+release.source_code=源代码
+release.tag_name=标签名称
+release.target=目标分支
+release.tag_helper=选择或创建一个已经存在的标签
+release.release_title=发布标题
+release.content_with_md=使用 Markdown 编辑内容
+release.write=内容编辑
+release.preview=效果预览
+release.content_placeholder=请输入内容
+release.loading=正在加载...
+release.prerelease_desc=这是一个预发行版本
+release.prerelease_helper=我们会告知用户不建议将本次发布投入生产环境使用。
+release.publish=发布版本
+release.save_draft=保存草稿
+release.edit_release=编辑发布信息
+release.tag_name_already_exist=已经存在使用相同标签进行发布的版本。
+
[org]
org_name_holder=组织名称
org_name_helper=伟大的组织都有一个简短而寓意深刻的名字。
diff --git a/models/repo.go b/models/repo.go
index be03ebd6c..bf46696df 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -811,6 +811,7 @@ func TransferOwnership(u *User, newOwner string, repo *Repository) error {
// ChangeRepositoryName changes all corresponding setting from old repository name to new one.
func ChangeRepositoryName(userName, oldRepoName, newRepoName string) (err error) {
+ newRepoName = strings.ToLower(newRepoName)
if !IsLegalName(newRepoName) {
return ErrRepoNameIllegal
}
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 491448a79..94c642b2b 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -72,6 +72,7 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) {
}
log.Trace("Repository name changed: %s/%s -> %s", ctx.Repo.Owner.Name, ctx.Repo.Repository.Name, newRepoName)
ctx.Repo.Repository.Name = newRepoName
+ ctx.Repo.Repository.LowerName = strings.ToLower(newRepoName)
}
br := form.Branch
diff --git a/templates/repo/release/edit.tmpl b/templates/repo/release/edit.tmpl
index 3473ecafc..44f2d7b74 100644
--- a/templates/repo/release/edit.tmpl
+++ b/templates/repo/release/edit.tmpl
@@ -37,7 +37,7 @@
- {{.i18n.Tr "repo.release.loading"}}...
+ {{.i18n.Tr "repo.release.loading"}}
diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl
index 7dbefd763..101a22456 100644
--- a/templates/repo/release/new.tmpl
+++ b/templates/repo/release/new.tmpl
@@ -49,7 +49,7 @@
- {{.i18n.Tr "repo.release.loading"}}...
+ {{.i18n.Tr "repo.release.loading"}}