Skip to content

Commit ffe92b7

Browse files
committed
Merge branch 'master' into team_mention_tribute
2 parents fc2b82a + 06eaf74 commit ffe92b7

File tree

7 files changed

+33
-9
lines changed

7 files changed

+33
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7-
## [1.13.0-RC1](https://github.com/go-gitea/gitea/releases/tag/v1.13.0-RC1) - 2020-10-14
7+
## [1.13.0-RC1](https://github.com/go-gitea/gitea/releases/tag/v1.13.0-rc1) - 2020-10-14
88

99
* SECURITY
1010
* Mitigate Security vulnerability in the git hook feature (#13058)

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ Mura Li <[email protected]> (@typeless)
3737
jaqra <[email protected]> (@jaqra)
3838
David Svantesson <[email protected]> (@davidsvantesson)
3939
CirnoT <[email protected]> (@CirnoT)
40+
a1012112796 <[email protected]> (@a1012112796)

options/locale/locale_zh-TW.ini

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ pick_reaction=選擇你的表情反應
684684
reactions_more=再多添加 %d個
685685
unit_disabled=網站管理員已經停用這個儲存庫區域。
686686
language_other=其它
687+
adopt_preexisting_content=從 %s 建立儲存庫
687688
delete_preexisting_label=刪除
688689

689690
desc.private=私有
@@ -963,7 +964,7 @@ issues.self_assign_at=`指派給自己 %s`
963964
issues.add_assignee_at=`被<b>%s</b>指派 %s`
964965
issues.remove_assignee_at=`被<b>%s</b>取消指派 %s`
965966
issues.remove_self_assignment=`取消指派給自己 %s`
966-
issues.change_title_at=`將標題從 <b><strike>%s</strike></b> 改為 <b>%s</b>%s`
967+
issues.change_title_at=`將標題從 <b><strike>%s</strike></b> 改為 <b>%s</b> %s`
967968
issues.delete_branch_at=`刪除分支 <b>%s</b> %s`
968969
issues.open_tab=%d 個開放中
969970
issues.close_tab=%d 個已關閉
@@ -1181,6 +1182,8 @@ pulls.is_closed=合併請求已被關閉。
11811182
pulls.has_merged=合併請求已合併。
11821183
pulls.title_wip_desc=`<a href="#">標題用 <strong>%s</strong> 開頭</a>以避免意外地合併此合併請求。`
11831184
pulls.cannot_merge_work_in_progress=此合併請求被標記為仍在作業中。準備好要合併時請移除 <strong>%s</strong> 前綴。
1185+
pulls.files_conflicted=此合併請求有變更和目標分支衝突。
1186+
pulls.blocked_by_rejection=官方審核人員要求修改此合併請求。
11841187
pulls.blocked_by_changed_protected_files_1=此合併請求被阻擋,因為修改到被保護的檔案:
11851188
pulls.blocked_by_changed_protected_files_n=此合併請求被阻擋,因為修改到被保護的檔案:
11861189
pulls.can_auto_merge_desc=這個合併請求可以自動合併。
@@ -1235,6 +1238,7 @@ milestones.filter_sort.most_complete=完成度由高到低
12351238
milestones.filter_sort.most_issues=問題由多到少
12361239
milestones.filter_sort.least_issues=問題由少到多
12371240

1241+
signing.will_sign=將使用金鑰「%s」簽署此提交。
12381242
signing.wont_sign.nokey=沒有金鑰可用來簽署此提交
12391243
signing.wont_sign.not_signed_in=你還沒有登入
12401244

@@ -1303,7 +1307,7 @@ activity.new_issue_label=已開放
13031307
activity.title.unresolved_conv_1=%d 未解決的對話
13041308
activity.title.unresolved_conv_n=%d 未解決的對話
13051309
activity.unresolved_conv_desc=這些最近更改的問題和合併請求尚未解決。
1306-
activity.unresolved_conv_label=打開
1310+
activity.unresolved_conv_label=開放
13071311
activity.title.releases_1=%d 個版本
13081312
activity.title.releases_n=%d 個版本
13091313
activity.title.releases_published_by=%[2]s發佈了 %[1]s
@@ -1588,6 +1592,7 @@ settings.update_protect_branch_success='%s' 的分支保護已被更新
15881592
settings.remove_protected_branch_success='%s' 的分支保護已被停用
15891593
settings.protected_branch_deletion=停用分支保護
15901594
settings.protected_branch_deletion_desc=停用分支保護將允許有寫入權限的使用者推送至該分支,是否繼續?
1595+
settings.block_rejected_reviews_desc=如果官方審核人員提出變更請求,即使有足夠的核可也不允許進行合併。
15911596
settings.default_branch_desc=請選擇一個用來提交程式碼和合併請求的預設分支。
15921597
settings.choose_branch=選擇一個分支...
15931598
settings.no_protected_branch=沒有受保護的分支。
@@ -1697,6 +1702,7 @@ branch.create_branch=建立分支 <strong>%s</strong>
16971702
branch.create_from=從 '%s'
16981703
branch.create_success=已建立分支 '%s'
16991704
branch.branch_already_exists=分支 '%s' 已存在此儲存庫
1705+
branch.branch_name_conflict=分支名稱「%s」與現有分支「%s」衝突。
17001706
branch.deleted_by=刪除人: %s
17011707
branch.restore_failed=還原分支 %s 失敗
17021708
branch.protected_deletion_failed=分支 '%s' 已被保護,不能刪除。
@@ -1828,7 +1834,7 @@ systemhooks=系統 Webhook
18281834
authentication=認證來源
18291835
emails=使用者電子信箱
18301836
config=組態
1831-
notices=系統提示管理
1837+
notices=系統提示
18321838
monitor=應用監控面版
18331839
first_page=首頁
18341840
last_page=末頁
@@ -2203,7 +2209,7 @@ monitor.queue.settings.changed=已更新設定
22032209
monitor.queue.settings.blocktimeout.value=%[1]v
22042210
22052211
2206-
notices.system_notice_list=系統提示管理
2212+
notices.system_notice_list=系統提示
22072213
notices.view_detail_header=查看提示細節
22082214
notices.actions=操作
22092215
notices.select_all=選取全部
@@ -2236,6 +2242,7 @@ push_tag=推送了標籤 <a href="%s/src/tag/%s">%[2]s</a> 到 <a href="%[1]s">%
22362242
compare_branch=比較
22372243
compare_commits=比較 %d 提交
22382244
compare_commits_general=比較提交
2245+
reject_pull_request=`建議變更 <a href="%s/pulls/%s">%s#%[2]s</a>`
22392246
22402247
[tool]
22412248
ago=%s前

routers/repo/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func serviceRPC(h serviceHandler, service string) {
576576
defer process.GetManager().Remove(pid)
577577

578578
if err := cmd.Run(); err != nil {
579-
log.Error("Fail to serve RPC(%s): %v - %s", service, err, stderr.String())
579+
log.Error("Fail to serve RPC(%s) in %s: %v - %s", service, h.dir, err, stderr.String())
580580
return
581581
}
582582
}

services/gitdiff/gitdiff.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ var (
181181
removedCodePrefix = []byte(`<span class="removed-code">`)
182182
codeTagSuffix = []byte(`</span>`)
183183
)
184-
var addSpanRegex = regexp.MustCompile(`<span [class="[a-z]*]*$`)
184+
var addSpanRegex = regexp.MustCompile(`<span\s*[a-z="]*$`)
185185

186186
func diffToHTML(fileName string, diffs []diffmatchpatch.Diff, lineType DiffLineType) template.HTML {
187187
buf := bytes.NewBuffer(nil)
@@ -221,7 +221,7 @@ func diffToHTML(fileName string, diffs []diffmatchpatch.Diff, lineType DiffLineT
221221
diffs[i].Text = strings.TrimSuffix(diffs[i].Text, addSpan)
222222
}
223223
buf.Write(addedCodePrefix)
224-
buf.WriteString(getLineContent(diffs[i].Text))
224+
buf.WriteString(diffs[i].Text)
225225
buf.Write(codeTagSuffix)
226226
case diffs[i].Type == diffmatchpatch.DiffDelete && lineType == DiffLineDel:
227227
if len(addSpan) > 0 {
@@ -238,7 +238,7 @@ func diffToHTML(fileName string, diffs []diffmatchpatch.Diff, lineType DiffLineT
238238
diffs[i].Text = strings.TrimSuffix(diffs[i].Text, addSpan)
239239
}
240240
buf.Write(removedCodePrefix)
241-
buf.WriteString(getLineContent(diffs[i].Text))
241+
buf.WriteString(diffs[i].Text)
242242
buf.Write(codeTagSuffix)
243243
}
244244
}

services/gitdiff/gitdiff_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ func TestDiffToHTML(t *testing.T) {
7474
{Type: dmp.DiffInsert, Text: "lass=\"p\">,</span> <span class=\"kc\">true</span><span class=\"p\">,</span> <span class=\"nx\">attrs"},
7575
{Type: dmp.DiffEqual, Text: "</span><span class=\"p\">,</span> <span class=\"kc\">false</span><span class=\"p\">)</span>"},
7676
}, DiffLineAdd))
77+
78+
assertEqual(t, "<span class=\"k\">print</span><span class=\"added-code\"></span><span class=\"added-code\"><span class=\"p\">(</span></span><span class=\"sa\"></span><span class=\"s2\">&#34;</span><span class=\"s2\">// </span><span class=\"s2\">&#34;</span><span class=\"p\">,</span> <span class=\"n\">sys</span><span class=\"o\">.</span><span class=\"n\">argv</span><span class=\"added-code\"><span class=\"p\">)</span></span>", diffToHTML("", []dmp.Diff{
79+
{Type: dmp.DiffEqual, Text: "<span class=\"k\">print</span>"},
80+
{Type: dmp.DiffInsert, Text: "<span"},
81+
{Type: dmp.DiffEqual, Text: " "},
82+
{Type: dmp.DiffInsert, Text: "class=\"p\">(</span>"},
83+
{Type: dmp.DiffEqual, Text: "<span class=\"sa\"></span><span class=\"s2\">&#34;</span><span class=\"s2\">// </span><span class=\"s2\">&#34;</span><span class=\"p\">,</span> <span class=\"n\">sys</span><span class=\"o\">.</span><span class=\"n\">argv</span>"},
84+
{Type: dmp.DiffInsert, Text: "<span class=\"p\">)</span>"},
85+
}, DiffLineAdd))
7786
}
7887

7988
func TestParsePatch_singlefile(t *testing.T) {

web_src/less/_repository.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@
400400
background-color: #ffffee;
401401
}
402402

403+
tr.has-parent a {
404+
display: inline-block;
405+
padding-top: 8px;
406+
padding-bottom: 8px;
407+
width: calc(100% - 1.25rem);
408+
}
409+
403410
.jumpable-path {
404411
color: #888888;
405412
}

0 commit comments

Comments
 (0)