Skip to content

Commit b986b94

Browse files
authored
Merge branch 'master' into branch-view-add-download-button
2 parents 2f4250b + c22b741 commit b986b94

File tree

34 files changed

+2378
-606
lines changed

34 files changed

+2378
-606
lines changed

go.mod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module code.gitea.io/gitea
33
go 1.12
44

55
require (
6-
github.com/BurntSushi/toml v0.3.1 // indirect
76
github.com/PuerkitoBio/goquery v0.0.0-20170324135448-ed7d758e9a34
87
github.com/RoaringBitmap/roaring v0.4.7 // indirect
98
github.com/Unknwon/cae v0.0.0-20160715032808-c6aac99ea2ca
@@ -127,11 +126,8 @@ require (
127126
gopkg.in/src-d/go-git.v4 v4.12.0
128127
gopkg.in/stretchr/testify.v1 v1.2.2 // indirect
129128
gopkg.in/testfixtures.v2 v2.5.0
130-
gopkg.in/yaml.v2 v2.2.2 // indirect
131129
mvdan.cc/xurls/v2 v2.0.0
132130
strk.kbt.io/projects/go/libravatar v0.0.0-20160628055650-5eed7bff870a
133131
xorm.io/builder v0.3.5
134132
xorm.io/core v0.6.3
135133
)
136-
137-
replace github.com/denisenkom/go-mssqldb => github.com/denisenkom/go-mssqldb v0.0.0-20180315180555-6a30f4e59a44

go.sum

Lines changed: 57 additions & 2 deletions
Large diffs are not rendered by default.

integrations/migration-test/migration_test.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,19 @@ func restoreOldDB(t *testing.T, version string) bool {
181181
assert.NoError(t, err)
182182
defer db.Close()
183183

184-
_, err = db.Exec("DROP DATABASE IF EXISTS gitea")
184+
_, err = db.Exec("DROP DATABASE IF EXISTS [gitea]")
185185
assert.NoError(t, err)
186186

187187
statements := strings.Split(data, "\nGO\n")
188188
for _, statement := range statements {
189+
if len(statement) > 5 && statement[:5] == "USE [" {
190+
dbname := statement[5 : len(statement)-1]
191+
db.Close()
192+
db, err = sql.Open("mssql", fmt.Sprintf("server=%s; port=%s; database=%s; user id=%s; password=%s;",
193+
host, port, dbname, models.DbCfg.User, models.DbCfg.Passwd))
194+
assert.NoError(t, err)
195+
defer db.Close()
196+
}
189197
_, err = db.Exec(statement)
190198
assert.NoError(t, err, "Failure whilst running: %s\nError: %v", statement, err)
191199
}

options/locale/locale_es-ES.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,7 @@ branch.deleted_by=Eliminada por %s
14061406
branch.restore_success=La rama '%s' ha sido restaurada.
14071407
branch.restore_failed=Fallo al restaurar la rama %s.
14081408
branch.protected_deletion_failed=La rama '%s' está protegida. No se puede eliminar.
1409+
branch.restore=Restaurar rama '%s'
14091410

14101411
topic.manage_topics=Administrar temas
14111412
topic.done=Hecho

options/locale/locale_ja-JP.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ branch.search=ブランチを検索
13911391
branch.already_exists=ブランチ '%s' は既に存在します。
13921392
branch.delete_head=削除
13931393
branch.delete=ブランチ '%s' の削除
1394-
branch.delete_html=ブランチを削除
1394+
branch.delete_html=ブランチ削除
13951395
branch.delete_desc=ブランチの削除は恒久的で、元に戻すことは<strong>できません</strong>。 続行しますか?
13961396
branch.deletion_success=ブランチ '%s' を削除しました。
13971397
branch.deletion_failed=ブランチ '%s' の削除に失敗しました。
@@ -1406,6 +1406,7 @@ branch.deleted_by=%s によって削除
14061406
branch.restore_success=ブランチ '%s' を復元しました。
14071407
branch.restore_failed=ブランチ '%s' の復元に失敗しました。
14081408
branch.protected_deletion_failed=ブランチ '%s' は保護されています。 削除できません。
1409+
branch.restore=ブランチ '%s' の復元
14091410

14101411
topic.manage_topics=トピックの管理
14111412
topic.done=完了

templates/repo/branch/list.tmpl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,11 @@
4343
</h4>
4444
<div class="ui attached table segment">
4545
<table class="ui very basic striped fixed table single line">
46-
<thead>
47-
<tr>
48-
<th class="six wide">{{.i18n.Tr "repo.branch.name"}}</th>
49-
<th class="three wide"></th>
50-
<th class="two wide"></th>
51-
<th class="two wide right aligned"></th>
52-
</tr>
53-
</thead>
5446
<tbody>
5547
{{range $branch := .Branches}}
5648
{{if ne .Name $.DefaultBranch}}
5749
<tr>
58-
<td>
50+
<td class="six wide">
5951
{{if .IsDeleted}}
6052
<s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
6153
<p class="info">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
@@ -67,7 +59,7 @@
6759
<p class="info"><i class="octicon octicon-git-commit"></i><a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · <span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span> · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
6860
{{end}}
6961
</td>
70-
<td class="ui">
62+
<td class="three wide ui">
7163
{{if not .IsDeleted}}
7264
<div class="commit-divergence">
7365
<div class="bar-group">
@@ -81,7 +73,7 @@
8173
</div>
8274
{{end}}
8375
</td>
84-
<td class="right aligned">
76+
<td class="two wide right aligned">
8577
{{if not .LatestPullRequest}}
8678
{{if and (not .IsDeleted) $.AllowsPulls}}
8779
<a href="{{$.RepoLink}}/compare/{{$.DefaultBranch | EscapePound}}...{{if ne $.Repository.Owner.Name $.Owner.Name}}{{$.Owner.Name}}:{{end}}{{.Name | EscapePound}}">

vendor/cloud.google.com/go/AUTHORS

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/CONTRIBUTORS

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/LICENSE

Lines changed: 202 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)