Skip to content

Commit f55381a

Browse files
committed
Merge branch 'master' of git://github.com/go-gitea/gitea
2 parents be24568 + 08c6319 commit f55381a

File tree

132 files changed

+1556
-1001
lines changed

Some content is hidden

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

132 files changed

+1556
-1001
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,6 @@ issues:
9595
linters:
9696
- misspell
9797
text: '`Destory` is a misspelling of `Destroy`'
98+
- linters:
99+
- misspell
100+
text: '`Unknwon` is a misspelling of `Unknown`'

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,33 @@ 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.1](https://github.com/go-gitea/gitea/releases/tag/v1.9.1) - 2019-08-14
8+
* BREAKING
9+
* Add pagination for admin api get orgs and fix only list public orgs bug (#7742) (#7752)
10+
* SECURITY
11+
* Be more strict with git arguments (#7715) (#7762)
12+
* 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
13+
* BUGFIXES
14+
* Fix local runs of ssh-requiring integration tests (#7855) (#7857)
15+
* Fix hook problem (#7856) (#7754)
16+
* Use .ExpiredUnix.IsZero to display green color of forever valid gpg key (#7850) (#7846)
17+
* Do not fetch all refs (#7797) (#7837)
18+
* Fix duplicate call of webhook (#7824) (#7821)
19+
* Enable switching to a different source branch when PR already exists (#7823)
20+
* Rewrite existing repo units if setting is not included in api body (#7811)
21+
* Prevent Commit Status and Message From Overflowing On Branch Page (#7800) (#7808)
22+
* API: fix multiple bugs with statuses endpoints (Backport #7785) (#7807)
23+
* Fix Slack webhook fork message (1.9 release backport) (#7783)
24+
* Fix approvals counting (#7757) (#7777)
25+
* Fix rename failed when rewrite public keys (#7761) (#7769)
26+
* Fix dropTableColumns sqlite implementation (#7710) (#7765)
27+
* Fix repo_index_status lingering when deleting a repository (#7738)
28+
* Fix milestone completness calculation when migrating (#7725) (#7732)
29+
* Fixes indexed repos keeping outdated indexes when files grow too large (#7731)
30+
* Skip non-regular files (e.g. submodules) on repo indexing (#7717)
31+
* Improve branches list performance and fix protected branch icon when no-login (#7695) (#7704)
32+
* Correct wrong datetime format for git (#7689) (#7690)
33+
734
## [1.9.0](https://github.com/go-gitea/gitea/releases/tag/v1.9.0) - 2019-07-30
835
* BREAKING
936
* 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,6 @@ pr:
476476
golangci-lint:
477477
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
478478
export BINARY="golangci-lint"; \
479-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.16.0; \
479+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1; \
480480
fi
481-
golangci-lint run
481+
golangci-lint run --deadline=3m

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 {

custom/conf/app.ini.sample

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ DISABLE_REGULAR_ORG_CREATION = false
306306
INSTALL_LOCK = false
307307
; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
308308
SECRET_KEY = !#@FDEWREWR&*(
309-
; How long to remember that an user is logged in before requiring relogin (in days)
309+
; How long to remember that a user is logged in before requiring relogin (in days)
310310
LOGIN_REMEMBER_DAYS = 7
311311
COOKIE_USERNAME = gitea_awesome
312312
COOKIE_REMEMBER_NAME = gitea_incredible
@@ -547,6 +547,9 @@ MAX_FILES = 5
547547
; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
548548
; For more information about the format see http://golang.org/pkg/time/#pkg-constants
549549
FORMAT =
550+
; Location the UI time display i.e. Asia/Shanghai
551+
; Empty means server's location setting
552+
DEFAULT_UI_LOCATION =
550553

551554
[log]
552555
ROOT_PATH =

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,12 @@ Two special environment variables are passed to the render command:
504504
- `GITEA_PREFIX_SRC`, which contains the current URL prefix in the `src` path tree. To be used as prefix for links.
505505
- `GITEA_PREFIX_RAW`, which contains the current URL prefix in the `raw` path tree. To be used as prefix for image paths.
506506

507+
## Time (`time`)
508+
- `FORMAT`: Time format to diplay on UI. i.e. RFC1123 or 2006-01-02 15:04:05
509+
- `DEFAULT_UI_LOCATION`: Default location of time on the UI, so that we can display correct user's time on UI. i.e. Shanghai/Asia
510+
507511
## Other (`other`)
508512

509513
- `SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.
510514
- `SHOW_FOOTER_VERSION`: **true**: Show Gitea version information in the footer.
511-
- `SHOW_FOOTER_TEMPLATE_LOAD_TIME`: **true**: Show time of template execution in the footer.
515+
- `SHOW_FOOTER_TEMPLATE_LOAD_TIME`: **true**: Show time of template execution in the footer.

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ IS_INPUT_FILE = false
237237
- RENDER_COMMAND: 工具的命令行命令及参数。
238238
- IS_INPUT_FILE: 输入方式是最后一个参数为文件路径还是从标准输入读取。
239239

240-
240+
## Time (`time`)
241+
- `FORMAT`: 显示在界面上的时间格式。比如: RFC1123 或者 2006-01-02 15:04:05
242+
- `DEFAULT_UI_LOCATION`: 默认显示在界面上的时区,默认为本地时区。比如: Asia/Shanghai
241243

242244
## Other (`other`)
243245

docs/content/doc/advanced/migrations.en-us.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ create a Downloader.
3434
```Go
3535
type Downloader interface {
3636
GetRepoInfo() (*Repository, error)
37+
GetTopics() ([]string, error)
3738
GetMilestones() ([]*Milestone, error)
3839
GetReleases() ([]*Release, error)
3940
GetLabels() ([]*Label, error)

integrations/api_repo_lfs_locks_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ func TestAPILFSLocksLogged(t *testing.T) {
104104
req := NewRequestWithJSON(t, "POST", fmt.Sprintf("/%s.git/info/lfs/locks", test.repo.FullName()), map[string]string{"path": test.path})
105105
req.Header.Set("Accept", "application/vnd.git-lfs+json")
106106
req.Header.Set("Content-Type", "application/vnd.git-lfs+json")
107-
session.MakeRequest(t, req, test.httpResult)
107+
resp := session.MakeRequest(t, req, test.httpResult)
108108
if len(test.addTime) > 0 {
109+
var lfsLock api.LFSLockResponse
110+
DecodeJSON(t, resp, &lfsLock)
111+
assert.EqualValues(t, lfsLock.Lock.LockedAt.Format(time.RFC3339), lfsLock.Lock.LockedAt.Format(time.RFC3339Nano)) //locked at should be rounded to second
109112
for _, id := range test.addTime {
110113
resultsTests[id].locksTimes = append(resultsTests[id].locksTimes, time.Now())
111114
}
@@ -124,6 +127,7 @@ func TestAPILFSLocksLogged(t *testing.T) {
124127
for i, lock := range lfsLocks.Locks {
125128
assert.EqualValues(t, test.locksOwners[i].DisplayName(), lock.Owner.Name)
126129
assert.WithinDuration(t, test.locksTimes[i], lock.LockedAt, 3*time.Second)
130+
assert.EqualValues(t, lock.LockedAt.Format(time.RFC3339), lock.LockedAt.Format(time.RFC3339Nano)) //locked at should be rounded to second
127131
}
128132

129133
req = NewRequestWithJSON(t, "POST", fmt.Sprintf("/%s.git/info/lfs/locks/verify", test.repo.FullName()), map[string]string{})

0 commit comments

Comments
 (0)