Skip to content

Commit f985e2c

Browse files
committed
fix merge conflicts
2 parents b453340 + eb8632b commit f985e2c

File tree

807 files changed

+66953
-11412
lines changed

Some content is hidden

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

807 files changed

+66953
-11412
lines changed

CHANGELOG.md

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@ 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.8.0-rc2](https://github.com/go-gitea/gitea/releases/tag/v1.8.0-rc2) - 2019-03-27
8-
* BUGFIXES
9-
* Disable benchmarking during tag events on DroneIO (#6365) (#6366)
10-
* Make sure units of a team are returned (#6379) (#6381)
11-
* Don't Unescape redirect_to cookie value (#6399) (#6401)
12-
* Fix dump table name error and add some test for dump database (#6394) (#6402)
13-
* Fix migration v82 to ignore unsynced tags between database and git data; Add missing is_archived column on repository table (#6387) (#6403)
14-
* Display correct error for invalid mirror interval (#6414) (#6429)
15-
* Clean up ref name rules (#6437) (#6439)
16-
* Fix Hook & HookList in Swagger (#6432) (#6440)
17-
* Change order that PostProcess Processors are run (#6445) (#6447)
18-
19-
## [1.8.0-rc1](https://github.com/go-gitea/gitea/releases/tag/v1.8.0-rc1) - 2019-03-18
7+
## [1.8.0](https://github.com/go-gitea/gitea/releases/tag/v1.8.0) - 2019-04-20
8+
* SECURITY
9+
* Prevent remote code execution vulnerability with mirror repo URL settings (#6593) (#6594)
10+
* Resolve 2FA bypass on API (#6676) (#6674)
11+
* Prevent the creation of empty sessions for non-logged in users (#6690) (#6677)
2012
* BREAKING
2113
* Add "ghost" and "notifications" to list of reserved user names. (#6208)
2214
* Change sqlite DB path default to data directory (#6198)
@@ -96,7 +88,31 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
9688
* Allow markdown table to scroll (#4401)
9789
* Automatically clear stopwatch on merging a PR (#4327)
9890
* Add the Owner Name to differentiate when merging (#3807)
91+
* Add title attributes to all items in the repo list viewer (#6258) (#6650)
9992
* BUGFIXES
93+
* Fix dropdown icon padding (#6651) (#6654)
94+
* Fix wrong GPG expire date (#6643) (#6644)
95+
* Fix forking an empty repository (#6637) (#6653)
96+
* Remove call to EscapePound .Link as it is already escaped (#6656) (#6666)
97+
* Properly escape on the redirect from the web editor (#6657) (#6667)
98+
* Allow resend of confirmation email when logged in (#6482) (#6486)
99+
* Fix mail notification when close/reopen issue (#6581) (#6588)
100+
* Change API commit summary to full message (#6591) (#6592)
101+
* Add option to disable refresh token invalidation (#6584) (#6587)
102+
* Fix bug user search API pagesize didn't obey ExplorePagingNum (#6579) (#6586)
103+
* Fix new repo alignment (#6583) (#6585)
104+
* Prevent server 500 on compare branches with no common history (#6555) (#6558)
105+
* Properly escape release attachment URL (#6512) (#6523)
106+
* Hacky fix for alignment of the create-organization dialog (#6455) (#6462)
107+
* Disable benchmarking during tag events on DroneIO (#6365) (#6366)
108+
* Make sure units of a team are returned (#6379) (#6381)
109+
* Don't Unescape redirect_to cookie value (#6399) (#6401)
110+
* Fix dump table name error and add some test for dump database (#6394) (#6402)
111+
* Fix migration v82 to ignore unsynced tags between database and git data; Add missing is_archived column on repository table (#6387) (#6403)
112+
* Display correct error for invalid mirror interval (#6414) (#6429)
113+
* Clean up ref name rules (#6437) (#6439)
114+
* Fix Hook & HookList in Swagger (#6432) (#6440)
115+
* Change order that PostProcess Processors are run (#6445) (#6447)
100116
* Clean up various use of escape/unescape functions for URL generation (#6334)
101117
* Return 409 when creating repo if it already exists. (#6330)
102118
* Add same changes from issues page to milestone->issues page (#6328)
@@ -222,6 +238,12 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
222238
* Add missing GET teams endpoints (#5382)
223239
* Migrate database if app.ini found (#5290)
224240

241+
## [1.7.6](https://github.com/go-gitea/gitea/releases/tag/v1.7.6) - 2019-04-12
242+
* SECURITY
243+
* Prevent remote code execution vulnerability with mirror repo URL settings (#6593) (#6595)
244+
* BUGFIXES
245+
* Allow resend of confirmation email when logged in (#6482) (#6487)
246+
225247
## [1.7.5](https://github.com/go-gitea/gitea/releases/tag/v1.7.5) - 2019-03-27
226248
* BUGFIXES
227249
* Fix unitTypeCode not being used in accessLevelUnit (#6419) (#6423)

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ He-Long Zhang <[email protected]> (@BetaCat0)
2828
Andrew Thornton <[email protected]> (@zeripath)
2929
John Olheiser <[email protected]> (@jolheiser)
3030
Richard Mahn <[email protected]> (@richmahn)
31+
Mrsdizzie <[email protected]> (@mrsdizzie)

Makefile

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ export GO111MODULE=off
44

55
GO ?= go
66
SED_INPLACE := sed -i
7+
SHASUM ?= shasum -a 256
78

89
export PATH := $($(GO) env GOPATH)/bin:$(PATH)
910

1011
ifeq ($(OS), Windows_NT)
11-
EXECUTABLE := gitea.exe
12+
EXECUTABLE ?= gitea.exe
1213
else
13-
EXECUTABLE := gitea
14+
EXECUTABLE ?= gitea
1415
UNAME_S := $(shell uname -s)
1516
ifeq ($(UNAME_S),Darwin)
1617
SED_INPLACE := sed -i ''
@@ -24,6 +25,8 @@ GOFMT ?= gofmt -s
2425
GOFLAGS := -i -v
2526
EXTRA_GOFLAGS ?=
2627

28+
MAKE_VERSION := $(shell make -v | head -n 1)
29+
2730
ifneq ($(DRONE_TAG),)
2831
VERSION ?= $(subst v,,$(DRONE_TAG))
2932
GITEA_VERSION ?= $(VERSION)
@@ -36,7 +39,7 @@ else
3639
GITEA_VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
3740
endif
3841

39-
LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
42+
LDFLAGS := $(LDFLAGS) -X "main.MakeVersion=$(MAKE_VERSION)" -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
4043

4144
PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations/migration-test,$(filter-out code.gitea.io/gitea/integrations,$(shell $(GO) list ./... | grep -v /vendor/)))
4245
SOURCES ?= $(shell find . -name "*.go" -type f)
@@ -46,8 +49,9 @@ TAGS ?=
4649
TMPDIR := $(shell mktemp -d 2>/dev/null || mktemp -d -t 'gitea-temp')
4750

4851
SWAGGER_SPEC := templates/swagger/v1_json.tmpl
49-
SWAGGER_SPEC_S_TMPL := s|"basePath":\s*"/api/v1"|"basePath": "{{AppSubUrl}}/api/v1"|g
50-
SWAGGER_SPEC_S_JSON := s|"basePath":\s*"{{AppSubUrl}}/api/v1"|"basePath": "/api/v1"|g
52+
SWAGGER_SPEC_S_TMPL := s|"basePath": *"/api/v1"|"basePath": "{{AppSubUrl}}/api/v1"|g
53+
SWAGGER_SPEC_S_JSON := s|"basePath": *"{{AppSubUrl}}/api/v1"|"basePath": "/api/v1"|g
54+
SWAGGER_NEWLINE_COMMAND := -e '$$a\'
5155

5256
TEST_MYSQL_HOST ?= mysql:3306
5357
TEST_MYSQL_DBNAME ?= testgitea
@@ -66,12 +70,6 @@ TEST_MSSQL_DBNAME ?= gitea
6670
TEST_MSSQL_USERNAME ?= sa
6771
TEST_MSSQL_PASSWORD ?= MwantsaSecurePassword1
6872

69-
ifeq ($(OS), Windows_NT)
70-
EXECUTABLE := gitea.exe
71-
else
72-
EXECUTABLE := gitea
73-
endif
74-
7573
# $(call strip-suffix,filename)
7674
strip-suffix = $(firstword $(subst ., ,$(1)))
7775

@@ -111,6 +109,7 @@ generate-swagger:
111109
fi
112110
swagger generate spec -o './$(SWAGGER_SPEC)'
113111
$(SED_INPLACE) '$(SWAGGER_SPEC_S_TMPL)' './$(SWAGGER_SPEC)'
112+
$(SED_INPLACE) $(SWAGGER_NEWLINE_COMMAND) './$(SWAGGER_SPEC)'
114113

115114
.PHONY: swagger-check
116115
swagger-check: generate-swagger
@@ -149,7 +148,7 @@ misspell-check:
149148
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
150149
$(GO) get -u github.com/client9/misspell/cmd/misspell; \
151150
fi
152-
misspell -error -i unknwon $(GOFILES)
151+
misspell -error -i unknwon,destory $(GOFILES)
153152

154153
.PHONY: misspell
155154
misspell:
@@ -200,6 +199,10 @@ test-vendor: vendor
200199
test-sqlite: integrations.sqlite.test
201200
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test
202201

202+
.PHONY: test-sqlite\#%
203+
test-sqlite\#%: integrations.sqlite.test
204+
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/sqlite.ini ./integrations.sqlite.test -test.run $*
205+
203206
.PHONY: test-sqlite-migration
204207
test-sqlite-migration: migrations.sqlite.test
205208
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/sqlite.ini ./migrations.sqlite.test
@@ -324,7 +327,7 @@ release-windows:
324327
fi
325328
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
326329
ifeq ($(CI),drone)
327-
mv /build/* $(DIST)/binaries
330+
cp /build/* $(DIST)/binaries
328331
endif
329332

330333
.PHONY: release-linux
@@ -334,7 +337,7 @@ release-linux:
334337
fi
335338
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out gitea-$(VERSION) .
336339
ifeq ($(CI),drone)
337-
mv /build/* $(DIST)/binaries
340+
cp /build/* $(DIST)/binaries
338341
endif
339342

340343
.PHONY: release-darwin
@@ -344,23 +347,23 @@ release-darwin:
344347
fi
345348
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
346349
ifeq ($(CI),drone)
347-
mv /build/* $(DIST)/binaries
350+
cp /build/* $(DIST)/binaries
348351
endif
349352

350353
.PHONY: release-copy
351354
release-copy:
352-
$(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
355+
cd $(DIST); for file in `find /build -type f -name "*"`; do cp $${file} ./release/; done;
353356

354357
.PHONY: release-check
355358
release-check:
356-
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
359+
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "checksumming $${file}" && $(SHASUM) `echo $${file} | sed 's/^..//'` > $${file}.sha256; done;
357360

358361
.PHONY: release-compress
359362
release-compress:
360363
@hash gxz > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
361364
$(GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
362365
fi
363-
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),gxz -k -9 $(notdir $(file));)
366+
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;
364367

365368
.PHONY: javascripts
366369
javascripts: public/js/index.js

0 commit comments

Comments
 (0)