Skip to content

Commit 49e260c

Browse files
committed
Merge master into indexbyfileext and resolve conflicts
2 parents d63a0fb + 1338825 commit 49e260c

File tree

1,030 files changed

+138945
-70306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,030 files changed

+138945
-70306
lines changed

.drone.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ steps:
9595
- make build
9696
environment:
9797
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
98+
GOSUMDB: sum.golang.org
9899
TAGS: bindata sqlite sqlite_unlock_notify
99100

100101
- name: unit-test

.golangci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ issues:
8686
- path: models/issue_comment_list.go
8787
linters:
8888
- dupl
89-
# "Destroy" is misspelled in github.com/go-macaron/session/session.go:213 so it's not our responsability to fix it
90-
- path: modules/session/virtual.go
91-
linters:
92-
- misspell
93-
text: '`Destory` is a misspelling of `Destroy`'
94-
- path: modules/session/memory.go
95-
linters:
89+
- linters:
9690
- misspell
97-
text: '`Destory` is a misspelling of `Destroy`'
91+
text: '`Unknwon` is a misspelling of `Unknown`'

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,47 @@ 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.9.2](https://github.com/go-gitea/gitea/releases/tag/v1.9.2) - 2019-08-22
8+
* BUGFIXES
9+
* Fix wrong sender when send slack webhook (#7918) (#7924)
10+
* Upload support text/plain; charset=utf8 (#7899)
11+
* Lfs/lock: round locked_at timestamp to second (#7872) (#7875)
12+
* Fix non existent milestone with 500 error (#7867) (#7873)
13+
* SECURITY
14+
* Fix No PGP signature on 1.9.1 tag (#7874)
15+
* Release built with go 1.12.9 to fix security fixes in golang std lib, ref: https://groups.google.com/forum/#!msg/golang-announce/oeMaeUnkvVE/a49yvTLqAAAJ
16+
* ENHANCEMENT
17+
* Fix pull creation with empty changes (#7920) (#7926)
18+
* BUILD
19+
* Drone/docker: prepare multi-arch release + provide arm64 image (#7571) (#7884)
20+
21+
## [1.9.1](https://github.com/go-gitea/gitea/releases/tag/v1.9.1) - 2019-08-14
22+
* BREAKING
23+
* Add pagination for admin api get orgs and fix only list public orgs bug (#7742) (#7752)
24+
* SECURITY
25+
* Be more strict with git arguments (#7715) (#7762)
26+
* Release built with go 1.12.8 to fix security fixes in golang std lib, ref: https://groups.google.com/forum/#!topic/golang-nuts/fCQWxqxP8aA
27+
* BUGFIXES
28+
* Fix local runs of ssh-requiring integration tests (#7855) (#7857)
29+
* Fix hook problem (#7856) (#7754)
30+
* Use .ExpiredUnix.IsZero to display green color of forever valid gpg key (#7850) (#7846)
31+
* Do not fetch all refs (#7797) (#7837)
32+
* Fix duplicate call of webhook (#7824) (#7821)
33+
* Enable switching to a different source branch when PR already exists (#7823)
34+
* Rewrite existing repo units if setting is not included in api body (#7811)
35+
* Prevent Commit Status and Message From Overflowing On Branch Page (#7800) (#7808)
36+
* API: fix multiple bugs with statuses endpoints (Backport #7785) (#7807)
37+
* Fix Slack webhook fork message (1.9 release backport) (#7783)
38+
* Fix approvals counting (#7757) (#7777)
39+
* Fix rename failed when rewrite public keys (#7761) (#7769)
40+
* Fix dropTableColumns sqlite implementation (#7710) (#7765)
41+
* Fix repo_index_status lingering when deleting a repository (#7738)
42+
* Fix milestone completness calculation when migrating (#7725) (#7732)
43+
* Fixes indexed repos keeping outdated indexes when files grow too large (#7731)
44+
* Skip non-regular files (e.g. submodules) on repo indexing (#7717)
45+
* Improve branches list performance and fix protected branch icon when no-login (#7695) (#7704)
46+
* Correct wrong datetime format for git (#7689) (#7690)
47+
748
## [1.9.0](https://github.com/go-gitea/gitea/releases/tag/v1.9.0) - 2019-07-30
849
* BREAKING
950
* Better logging (#6038) (#6095)

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ Richard Mahn <[email protected]> (@richmahn)
3131
Mrsdizzie <[email protected]> (@mrsdizzie)
3232
silverwind <[email protected]> (@silverwind)
3333
Gary Kim <[email protected]> (@gary-kim)
34+
Guillermo Prandi <[email protected]> (@guillep2k)
35+
Mura Li <[email protected]> (@typeless)

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ generate:
102102
.PHONY: generate-swagger
103103
generate-swagger:
104104
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
105-
GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.19.0; \
105+
GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.20.1; \
106106
fi
107107
swagger generate spec -o './$(SWAGGER_SPEC)'
108108
$(SED_INPLACE) '$(SWAGGER_SPEC_S_TMPL)' './$(SWAGGER_SPEC)'
@@ -120,7 +120,7 @@ swagger-check: generate-swagger
120120
.PHONY: swagger-validate
121121
swagger-validate:
122122
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
123-
$(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger; \
123+
GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.20.1; \
124124
fi
125125
$(SED_INPLACE) '$(SWAGGER_SPEC_S_JSON)' './$(SWAGGER_SPEC)'
126126
swagger validate './$(SWAGGER_SPEC)'
@@ -473,6 +473,6 @@ pr:
473473
golangci-lint:
474474
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
475475
export BINARY="golangci-lint"; \
476-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.16.0; \
476+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1; \
477477
fi
478-
golangci-lint run
478+
golangci-lint run --deadline=3m

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func initDB() error {
3838

3939
func initDBDisableConsole(disableConsole bool) error {
4040
setting.NewContext()
41-
models.LoadConfigs()
41+
setting.InitDBConfig()
4242

4343
setting.NewXORMLogService(disableConsole)
4444
if err := models.SetEngine(); err != nil {

cmd/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ func runConvert(ctx *cli.Context) error {
3131
log.Trace("AppWorkPath: %s", setting.AppWorkPath)
3232
log.Trace("Custom path: %s", setting.CustomPath)
3333
log.Trace("Log path: %s", setting.LogRootPath)
34-
models.LoadConfigs()
34+
setting.InitDBConfig()
3535

36-
if models.DbCfg.Type != "mysql" {
36+
if !setting.Database.UseMySQL {
3737
fmt.Println("This command can only be used with a MySQL database")
3838
return nil
3939
}

cmd/dump.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"code.gitea.io/gitea/models"
1818
"code.gitea.io/gitea/modules/setting"
1919

20-
"github.com/Unknwon/cae/zip"
21-
"github.com/Unknwon/com"
20+
"github.com/unknwon/cae/zip"
21+
"github.com/unknwon/com"
2222
"github.com/urfave/cli"
2323
)
2424

@@ -58,7 +58,6 @@ It can be used for backup and capture Gitea server image to send to maintainer`,
5858
func runDump(ctx *cli.Context) error {
5959
setting.NewContext()
6060
setting.NewServices() // cannot access session settings otherwise
61-
models.LoadConfigs()
6261

6362
err := models.SetEngine()
6463
if err != nil {
@@ -104,8 +103,8 @@ func runDump(ctx *cli.Context) error {
104103
}
105104

106105
targetDBType := ctx.String("database")
107-
if len(targetDBType) > 0 && targetDBType != models.DbCfg.Type {
108-
log.Printf("Dumping database %s => %s...", models.DbCfg.Type, targetDBType)
106+
if len(targetDBType) > 0 && targetDBType != setting.Database.Type {
107+
log.Printf("Dumping database %s => %s...", setting.Database.Type, targetDBType)
109108
} else {
110109
log.Printf("Dumping database...")
111110
}

cmd/hook.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ func runHookPreReceive(c *cli.Context) error {
9696
UserID: userID,
9797
GitAlternativeObjectDirectories: os.Getenv(private.GitAlternativeObjectDirectories),
9898
GitObjectDirectory: os.Getenv(private.GitObjectDirectory),
99+
GitQuarantinePath: os.Getenv(private.GitQuarantinePath),
99100
ProtectedBranchID: prID,
100101
})
101102
switch statusCode {

cmd/migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func runMigrate(ctx *cli.Context) error {
3030
log.Trace("AppWorkPath: %s", setting.AppWorkPath)
3131
log.Trace("Custom path: %s", setting.CustomPath)
3232
log.Trace("Log path: %s", setting.LogRootPath)
33-
models.LoadConfigs()
33+
setting.InitDBConfig()
3434

3535
if err := models.NewEngine(migrations.Migrate); err != nil {
3636
log.Fatal("Failed to initialize ORM engine: %v", err)

0 commit comments

Comments
 (0)