]> source.dussan.org Git - gitea.git/log
gitea.git
7 years agoFixed drone builds v1.1.0
Thomas Boerger [Thu, 9 Mar 2017 19:25:12 +0000 (20:25 +0100)]
Fixed drone builds

7 years agoUpdated changelog (#1164)
Thomas Boerger [Thu, 9 Mar 2017 19:13:29 +0000 (20:13 +0100)]
Updated changelog (#1164)

7 years agoupdate locale files to 2017-03-10 00:07 +08 (#1163)
Lunny Xiao [Thu, 9 Mar 2017 16:37:27 +0000 (00:37 +0800)]
update locale files to 2017-03-10 00:07 +08 (#1163)

7 years agofix scripts/mysql.sql from gogs to gitea (#1161)
Lunny Xiao [Thu, 9 Mar 2017 14:31:46 +0000 (22:31 +0800)]
fix scripts/mysql.sql from gogs to gitea (#1161)

7 years agoGrammar fixes and small wording adjustments (#1156)
Patrick G [Thu, 9 Mar 2017 13:24:57 +0000 (08:24 -0500)]
Grammar fixes and small wording adjustments (#1156)

* Grammar fixes and small wording adjustments

* More grammar fixes

7 years agomerge locale files from crowdin, updated to 2017-03-09 19:28 +08 (#1162)
Lunny Xiao [Thu, 9 Mar 2017 13:19:23 +0000 (21:19 +0800)]
merge locale files from crowdin, updated to 2017-03-09 19:28 +08 (#1162)

7 years agoFix grammar (#1158)
Patrick G [Thu, 9 Mar 2017 11:20:52 +0000 (06:20 -0500)]
Fix grammar (#1158)

7 years agofix leave team 404 (#1154)
Lunny Xiao [Thu, 9 Mar 2017 11:18:49 +0000 (19:18 +0800)]
fix leave team 404 (#1154)

7 years agoFix Git hooks not being executed on Windows when running as a service (#1149)
Andrey Nering [Thu, 9 Mar 2017 01:27:43 +0000 (22:27 -0300)]
Fix Git hooks not being executed on Windows when running as a service (#1149)

Closes #1139

7 years agofix random avatars (#1147)
Lunny Xiao [Wed, 8 Mar 2017 15:05:15 +0000 (23:05 +0800)]
fix random avatars (#1147)

7 years agofix UI display problem when wiki name is non-ascii charset (#1142)
Lunny Xiao [Wed, 8 Mar 2017 00:34:22 +0000 (08:34 +0800)]
fix UI display problem when wiki name is non-ascii charset (#1142)

7 years agoSplit the binary build (#985)
Thomas Boerger [Tue, 7 Mar 2017 13:49:24 +0000 (14:49 +0100)]
Split the binary build (#985)

As we can not compile darwin binaries with static flags I have split the
build process into different make tasks. Now we get static linked
binaries especially for linux so that it also can run on older versions
of CenOS and so on.

Signed-off-by: Thomas Boerger <thomas@webhippie.de>
7 years agoFix stray directories generated by integration tests (#1134)
Mura Li [Tue, 7 Mar 2017 07:38:26 +0000 (15:38 +0800)]
Fix stray directories generated by integration tests (#1134)

7 years agofix build failed on aarch64 (#1132)
Lunny Xiao [Tue, 7 Mar 2017 07:09:05 +0000 (15:09 +0800)]
fix build failed on aarch64 (#1132)

7 years agoAdd basic integration test infrastructure (and new endpoint `/api/v1/version` for...
Mura Li [Mon, 6 Mar 2017 14:13:17 +0000 (22:13 +0800)]
Add basic integration test infrastructure (and new endpoint `/api/v1/version` for testing it) (#741)

* Implement '/api/v1/version'

* Cleanup and various fixes

* Enhance run.sh

* Add install_test.go

* Add parameter utils.Config for testing handlers

* Re-organize TestVersion.go

* Rename functions

* handling process cleanup properly

* Fix missing function renaming

* Cleanup the 'retry' logic

* Cleanup

* Remove unneeded logging code

* Logging messages tweaking

* Logging message tweaking

* Fix logging messages

* Use 'const' instead of hardwired numbers

* We don't really need retries anymore

* Move constant ServerHttpPort to install_test.go

* Restore mistakenly removed constant

* Add required comments to make the linter happy.

* Fix comments and naming to address linter's complaints

* Detect Gitea executale version automatically

* Remove tests/run.sh, `go test` suffices.

* Make `make build` a prerequisite of `make test`

* Do not sleep before trying

* Speedup the server pinging loop

* Use defined const instead of hardwired numbers

* Remove redundant error handling

* Use a dedicated target for running code.gitea.io/tests

* Do not make 'test' depend on 'build' target

* Rectify the excluded package list

* Remove redundant 'exit 1'

* Change the API to allow passing test.T to test handlers

* Make testing.T an embedded field

* Use assert.Equal to comparing results

* Add copyright info

* Parametrized logging output

* Use tmpdir instead

* Eliminate redundant casting

* Remove unneeded variable

* Fix last commit

* Add missing copyright info

* Replace fmt.Fprintf with fmt.Fprint

* rename the xtest to integration-test

* Use Symlink instead of hard-link for cross-device linking

* Turn debugging logs on

* Follow the existing framework for APIs

* Output logs only if test.v is true

* Re-order import statements

* Enhance the error message

* Fix comment which breaks the linter's rule

* Rename 'integration-test' to 'e2e-test' for saving keystrokes

* Add comment to avoid possible confusion

* Rename tests -> integration-tests

Also change back the Makefile to use `make integration-test`.

* Use tests/integration for now

* tests/integration -> integrations

Slightly flattened directory hierarchy is better.

* Update Makefile accordingly

* Fix a missing change in Makefile

* govendor update code.gitea.io/sdk/gitea

* Fix comment of struct fields

* Fix conditional nonsense

* Fix missing updates regarding version string changes

* Make variable naming more consistent

* Check http status code

* Rectify error messages

7 years agofix avatar bug #1114 (#1122)
Lunny Xiao [Mon, 6 Mar 2017 08:15:40 +0000 (16:15 +0800)]
fix avatar bug #1114 (#1122)

This PR fix the avatar bug described in #1114. This will fix random avatar is blank problem and potential delete avatars dir problem.

7 years agofix del org avatar potential delete all avtars (#1120)
Lunny Xiao [Mon, 6 Mar 2017 08:07:18 +0000 (16:07 +0800)]
fix del org avatar potential delete all avtars (#1120)

7 years agofix install submit crash caused by xorm log (#1119)
Lunny Xiao [Mon, 6 Mar 2017 02:11:43 +0000 (10:11 +0800)]
fix install submit crash caused by xorm log (#1119)

7 years agofeat: expose url field on issue api. (#982)
Bo-Yi Wu [Fri, 3 Mar 2017 14:35:42 +0000 (22:35 +0800)]
feat: expose url field on issue api. (#982)

* Add api url func.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix: Add unit testing.

* fix: conflicts

* fix: remove trim

* fix: revert test function name.

7 years agorefactor: remove redundant slash. (#1109)
Bo-Yi Wu [Fri, 3 Mar 2017 12:47:24 +0000 (20:47 +0800)]
refactor: remove redundant slash. (#1109)

7 years agofix panic when get user repos from api (#1110)
Lunny Xiao [Fri, 3 Mar 2017 11:10:46 +0000 (19:10 +0800)]
fix panic when get user repos from api (#1110)

7 years agofix compare button failed when there is no fork repos (#1104)
Lunny Xiao [Fri, 3 Mar 2017 08:53:59 +0000 (16:53 +0800)]
fix compare button failed when there is no fork repos (#1104)

7 years agofix: gofmt errors. (#1106)
Bo-Yi Wu [Fri, 3 Mar 2017 08:21:31 +0000 (16:21 +0800)]
fix: gofmt errors. (#1106)

7 years agofix broken caused by boltdb in mips/mipsle (#1107)
Lunny Xiao [Fri, 3 Mar 2017 07:57:54 +0000 (15:57 +0800)]
fix broken caused by boltdb in mips/mipsle (#1107)

7 years agoDon't rewrite non-gitea public keys (#906)
Lunny Xiao [Thu, 2 Mar 2017 16:36:47 +0000 (00:36 +0800)]
Don't rewrite non-gitea public keys (#906)

* don't rewrite non-gitea public keys

* add comment for public key

7 years agobug fix for dump when data directoryis not exist (#1025)
Lunny Xiao [Thu, 2 Mar 2017 09:41:33 +0000 (17:41 +0800)]
bug fix for dump when data directoryis not exist (#1025)

7 years agoadd ProxyFromEnvironment if none set (#1096)
Schwobaland [Thu, 2 Mar 2017 00:36:42 +0000 (01:36 +0100)]
add ProxyFromEnvironment if none set (#1096)

7 years agoLog config pretty printer (#1097)
Jonas [Thu, 2 Mar 2017 00:25:44 +0000 (01:25 +0100)]
Log config pretty printer (#1097)

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
7 years agoadd back the default setting values and fix #739 (#1093)
Lunny Xiao [Wed, 1 Mar 2017 15:10:12 +0000 (23:10 +0800)]
add back the default setting values and fix #739 (#1093)

7 years agoComment force push detect to fix bug #1073 (#1077)
Lunny Xiao [Wed, 1 Mar 2017 15:01:03 +0000 (23:01 +0800)]
Comment force push detect to fix bug #1073 (#1077)

* umcomment force push detect to fix bug #1073

* fix #1086

* handle global config set and fix #1086

7 years agofix wrong num of user repos because of duplicated click delete button & performance...
Lunny Xiao [Wed, 1 Mar 2017 04:05:45 +0000 (12:05 +0800)]
fix wrong num of user repos because of duplicated click delete button & performance optimization (#1092)

7 years agofix: Add str2html on DisplayName of Org. (#1091)
Bo-Yi Wu [Wed, 1 Mar 2017 04:02:19 +0000 (12:02 +0800)]
fix: Add str2html on DisplayName of Org. (#1091)

7 years agoFixed custom templates for static builds (#1087)
Thomas Boerger [Wed, 1 Mar 2017 01:45:21 +0000 (02:45 +0100)]
Fixed custom templates for static builds (#1087)

7 years agoRemove unnecessary loads in org_team (#1090)
Ethan Koenig [Wed, 1 Mar 2017 01:09:49 +0000 (20:09 -0500)]
Remove unnecessary loads in org_team (#1090)

7 years agoLableIDs -> LabelIDs (#1088)
Ethan Koenig [Wed, 1 Mar 2017 01:08:45 +0000 (20:08 -0500)]
LableIDs -> LabelIDs (#1088)

7 years agorefactor: move SearchRepositoryByName testing. (#1083)
Bo-Yi Wu [Tue, 28 Feb 2017 09:58:50 +0000 (17:58 +0800)]
refactor: move SearchRepositoryByName testing. (#1083)

7 years agofix some typos (#1082)
Lunny Xiao [Tue, 28 Feb 2017 04:56:15 +0000 (12:56 +0800)]
fix some typos (#1082)

7 years agoConsistency checks for action unit tests (#1079)
Ethan Koenig [Tue, 28 Feb 2017 01:42:10 +0000 (20:42 -0500)]
Consistency checks for action unit tests (#1079)

7 years agoOptimize and unit test Issue_ReplaceLabels (#1080)
Ethan Koenig [Tue, 28 Feb 2017 01:35:55 +0000 (20:35 -0500)]
Optimize and unit test Issue_ReplaceLabels (#1080)

7 years agoFix for #828: Embed build tags (#1051)
Jonas [Tue, 28 Feb 2017 00:40:02 +0000 (01:40 +0100)]
Fix for #828: Embed build tags (#1051)

* Fix for #828
Add build tags to ldflags and print in version output

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* Reworked formatBuiltWith function

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* Add tags to version information in admin panel

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* Added new variable for use on admin page.

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* Fixed incorrect indentation

7 years agoLink OAuth2 account to 2FA enabled account (fix #1050) (#1052)
Willem van Dreumel [Mon, 27 Feb 2017 10:10:26 +0000 (11:10 +0100)]
Link OAuth2 account to 2FA enabled account (fix #1050) (#1052)

* fixes #1050 where linking an account to a 2fa enabled account failed because we forgot to really link the account when 2fa is completed

* handle errors

7 years agoAPI: support /users/:username/repos
awwalker [Fri, 24 Feb 2017 21:39:49 +0000 (16:39 -0500)]
API: support /users/:username/repos

clean up

fix arguments

remove repeated token

give admins listing rights

7 years agofix push (#1076)
Lunny Xiao [Mon, 27 Feb 2017 06:24:58 +0000 (14:24 +0800)]
fix push (#1076)

7 years agoFix unused Engine bugs (#1064)
Ethan Koenig [Mon, 27 Feb 2017 02:16:35 +0000 (21:16 -0500)]
Fix unused Engine bugs (#1064)

7 years agoremove unused struct (#1062)
Lunny Xiao [Mon, 27 Feb 2017 01:49:05 +0000 (09:49 +0800)]
remove unused struct (#1062)

7 years agoRemove unused vars (#1063)
Lunny Xiao [Mon, 27 Feb 2017 01:22:15 +0000 (09:22 +0800)]
Remove unused vars (#1063)

* remove unused vars

* remove unused comment

7 years agomove all repo list functions as a standalone file (#1061)
Lunny Xiao [Mon, 27 Feb 2017 00:45:03 +0000 (08:45 +0800)]
move all repo list functions as a standalone file (#1061)

7 years agofix setMerged for remove unnecessary db connection (#1067)
Lunny Xiao [Mon, 27 Feb 2017 00:42:55 +0000 (08:42 +0800)]
fix setMerged for remove unnecessary db connection (#1067)

7 years agoBug fixed for org avatar caused by #1049 (#1070)
Lunny Xiao [Mon, 27 Feb 2017 00:42:22 +0000 (08:42 +0800)]
Bug fixed for org avatar caused by #1049 (#1070)

* bug fixed for org avatar caused by #1049

* use isfile only

7 years agorefactor api issues load attributes for better performance (#1066)
Lunny Xiao [Mon, 27 Feb 2017 00:36:42 +0000 (08:36 +0800)]
refactor api issues load attributes for better performance (#1066)

7 years agoMakefile: Use hash over which (#1069)
silverwind [Sun, 26 Feb 2017 15:27:45 +0000 (16:27 +0100)]
Makefile: Use hash over which (#1069)

`hash` is a much faster shell-builtin alternative to `which`.

7 years agoImplements 1071, .gitignore support for FSharp and Clojure. (#1072)
puffybsd [Sun, 26 Feb 2017 15:14:38 +0000 (10:14 -0500)]
Implements 1071, .gitignore support for FSharp and Clojure. (#1072)

7 years agoMakefile: Also redirect stderr on which calls (#1068)
silverwind [Sun, 26 Feb 2017 13:12:21 +0000 (14:12 +0100)]
Makefile: Also redirect stderr on which calls (#1068)

7 years agoremove unused fixme on dump command (#1065)
Lunny Xiao [Sun, 26 Feb 2017 08:01:49 +0000 (16:01 +0800)]
remove unused fixme on dump command (#1065)

7 years agofix: Admin can see all private repositories on Explore page. (#1026)
Bo-Yi Wu [Sun, 26 Feb 2017 05:59:31 +0000 (13:59 +0800)]
fix: Admin can see all private repositories on Explore page. (#1026)

* fix: Admin can see all private repositories on Explore page.

* refactor: fix session

7 years agoFix go vet faults (#1060)
Ethan Koenig [Sun, 26 Feb 2017 05:25:35 +0000 (00:25 -0500)]
Fix go vet faults (#1060)

7 years agoAllow migrating installations with no local avatars (#1056)
Sandro Santilli [Sun, 26 Feb 2017 03:58:02 +0000 (04:58 +0100)]
Allow migrating installations with no local avatars (#1056)

7 years agoFix avatar enumable (#1049)
Lunny Xiao [Sat, 25 Feb 2017 14:58:57 +0000 (22:58 +0800)]
Fix avatar enumable (#1049)

* fix avatar enumable

* fix import style

7 years agofix 500 when use a duplicat email instead of giving an error tip (#1040)
Lunny Xiao [Sat, 25 Feb 2017 14:57:06 +0000 (22:57 +0800)]
fix 500 when use a duplicat email instead of giving an error tip (#1040)

7 years agoMove push update to post-receive and protected branch check to pre-receive (#1030)
Lunny Xiao [Sat, 25 Feb 2017 14:54:40 +0000 (22:54 +0800)]
Move push update to post-receive and protected branch check to pre-receive (#1030)

* move all push update to git hook post-receive and protected branch check to git hook pre-receive

* add SSH_ORIGINAL_COMMAND check back

* remove all unused codes

* fix the import

7 years agofix #13 (#1042)
Lunny Xiao [Sat, 25 Feb 2017 14:53:57 +0000 (22:53 +0800)]
fix #13 (#1042)

7 years agoMerge pull request #970 from andreynering/api-repo-mirror
Andrey Nering [Sat, 25 Feb 2017 14:35:03 +0000 (11:35 -0300)]
Merge pull request #970 from andreynering/api-repo-mirror

Add "mirror" field to repo API

7 years agoMerge pull request #1053 from andreynering/do-not-test-libravatar
Andrey Nering [Sat, 25 Feb 2017 14:27:45 +0000 (11:27 -0300)]
Merge pull request #1053 from andreynering/do-not-test-libravatar

Remove test that touch network

7 years agorefactor for searching user (#1038)
Lunny Xiao [Sat, 25 Feb 2017 13:42:20 +0000 (21:42 +0800)]
refactor for searching user (#1038)

* refactor for searching user

* fix like bug

* better format for builder cond

7 years agofix 500 when change user setting email to an exist email (#1039)
Lunny Xiao [Sat, 25 Feb 2017 13:39:52 +0000 (21:39 +0800)]
fix 500 when change user setting email to an exist email (#1039)

7 years agoRemove test that touch network 1053/head
Andrey Nering [Sat, 25 Feb 2017 13:32:15 +0000 (10:32 -0300)]
Remove test that touch network

7 years agoUpdate vendor of code.gitea.io/sdk/gitea 970/head
Andrey Nering [Wed, 22 Feb 2017 23:53:33 +0000 (20:53 -0300)]
Update vendor of code.gitea.io/sdk/gitea

7 years agoAdd "mirror" field to repo API
Andrey Nering [Sat, 18 Feb 2017 16:11:15 +0000 (14:11 -0200)]
Add "mirror" field to repo API

7 years agoMerge pull request #1043 from andrew-boyarshin/autolink
Andrey Nering [Sat, 25 Feb 2017 12:31:28 +0000 (09:31 -0300)]
Merge pull request #1043 from andrew-boyarshin/autolink

Fix span wrapping all the things

7 years agoFix for #1037: Corrected process ID placeholder to PID from Pid (#1048)
Jonas [Sat, 25 Feb 2017 03:12:46 +0000 (04:12 +0100)]
Fix for #1037: Corrected process ID placeholder to PID from Pid (#1048)

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
7 years agoReword the reinit_missing_repos message to be clear about what it does (#1047)
Sandro Santilli [Sat, 25 Feb 2017 03:12:17 +0000 (04:12 +0100)]
Reword the reinit_missing_repos message to be clear about what it does (#1047)

I was confused by current wording, which seemed to imply that
*records* would be initialized, while instead the function initializes
the *git repositories* instead, where missing but referenced.

7 years agorefactor: repo counts for SearchRepositoryByName func (#1045)
Bo-Yi Wu [Sat, 25 Feb 2017 01:27:39 +0000 (09:27 +0800)]
refactor:  repo counts for SearchRepositoryByName func (#1045)

7 years agofix delete repo will hang on postgres (#1044)
Lunny Xiao [Fri, 24 Feb 2017 15:19:13 +0000 (23:19 +0800)]
fix delete repo will hang on postgres (#1044)

7 years agoFix URL handling in the whole markdown module, improve test coverage (#1027)
Andrew Boyarshin [Fri, 24 Feb 2017 14:59:56 +0000 (21:59 +0700)]
Fix URL handling in the whole markdown module, improve test coverage (#1027)

Amended with string to bool change in API SDK.

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
7 years agoFix span wrapping all the things 1043/head
Andrew Boyarshin [Fri, 24 Feb 2017 11:49:04 +0000 (18:49 +0700)]
Fix span wrapping all the things

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
7 years agoRemoved footer copyright year (#829)
Lunny Xiao [Fri, 24 Feb 2017 08:21:45 +0000 (16:21 +0800)]
Removed footer copyright year (#829)

* change footer copyright year from 2016 to 2017

* add 2016 copyright back

* remove the copyright year

7 years agoRemove unnecessary loads in org_team (#1035)
Ethan Koenig [Fri, 24 Feb 2017 06:25:09 +0000 (01:25 -0500)]
Remove unnecessary loads in org_team (#1035)

7 years agoUnit tests for models/repo_collaboration (#1032)
Ethan Koenig [Fri, 24 Feb 2017 01:37:38 +0000 (20:37 -0500)]
Unit tests for models/repo_collaboration (#1032)

7 years agoFixes 1019, install page SMTP user is required to (#1020)
puffybsd [Fri, 24 Feb 2017 01:37:13 +0000 (20:37 -0500)]
Fixes 1019, install page SMTP user is required to (#1020)

to be an email address.

Signed-off-by: P.B. <puffybsd@yahoo.com>
7 years agoTweak docker target to work by default. (#1033)
Dan Morrill [Fri, 24 Feb 2017 01:33:09 +0000 (17:33 -0800)]
Tweak docker target to work by default. (#1033)

Fix for #1013: adds "bindata" to tags by default, as without this the
resulting docker image won't start, as it doesn't contain locale files.
Verified to work even if you specify TAGS="bindata" such that it appears
twice.

7 years agos/fields/terms (#1031)
bit [Fri, 24 Feb 2017 01:24:58 +0000 (02:24 +0100)]
s/fields/terms (#1031)

use terms instead of fields as variable name to avoid confusion: NewPhraseQuery(terms []string, field string)

7 years agoadded missing new struct sync (#1021)
Lunny Xiao [Thu, 23 Feb 2017 07:05:37 +0000 (15:05 +0800)]
added missing new struct sync (#1021)

7 years agoTake back control of hooks (#1006)
Lunny Xiao [Thu, 23 Feb 2017 03:40:44 +0000 (11:40 +0800)]
Take back control of hooks (#1006)

* git: delegate all server-side Git hooks (#1623)

* create hooks directories

* take control hooks back

* fix lint

* bug fixed and minor changes

* fix imports style

* fix migration scripts

7 years agoBug fixes and unit tests for org_team (#1016)
Ethan Koenig [Thu, 23 Feb 2017 01:36:15 +0000 (20:36 -0500)]
Bug fixes and unit tests for org_team (#1016)

7 years agoMerge pull request #1017 from ethantkoenig/fix_lint
Andrey Nering [Thu, 23 Feb 2017 00:14:54 +0000 (21:14 -0300)]
Merge pull request #1017 from ethantkoenig/fix_lint

Fix lint errors

7 years agoFix lint errors 1017/head
Ethan Koenig [Wed, 22 Feb 2017 22:10:45 +0000 (17:10 -0500)]
Fix lint errors

7 years agoRefactor for issues loadattributes of a repository (#971)
Lunny Xiao [Wed, 22 Feb 2017 14:03:59 +0000 (22:03 +0800)]
Refactor for issues loadattributes of a repository (#971)

* refactor for issues loadattributes of a repository

* refactors

7 years agoFix some links. (#1005)
Bo-Yi Wu [Wed, 22 Feb 2017 13:21:25 +0000 (21:21 +0800)]
Fix some links. (#1005)

7 years agofix: Wrong repo list on Explore page if user already loggin. (#1009)
Bo-Yi Wu [Wed, 22 Feb 2017 13:15:14 +0000 (21:15 +0800)]
fix: Wrong repo list on Explore page if user already loggin. (#1009)

* fix: Wrong repo list on Explore page if user already loggin.

* fix: code readable.

* fix: declare variable

7 years agofix panic when push but the only log mode console is disabled by serv and update...
Lunny Xiao [Wed, 22 Feb 2017 11:44:51 +0000 (19:44 +0800)]
fix panic when push but the only log mode console is disabled by serv and update commands (#1007)

7 years agoOauth2 consumer (#679)
Willem van Dreumel [Wed, 22 Feb 2017 07:14:37 +0000 (08:14 +0100)]
Oauth2 consumer (#679)

* initial stuff for oauth2 login, fails on:
* login button on the signIn page to start the OAuth2 flow and a callback for each provider
Only GitHub is implemented for now
* show login button only when the OAuth2 consumer is configured (and activated)
* create macaron group for oauth2 urls
* prevent net/http in modules (other then oauth2)
* use a new data sessions oauth2 folder for storing the oauth2 session data
* add missing 2FA when this is enabled on the user
* add password option for OAuth2 user , for use with git over http and login to the GUI
* add tip for registering a GitHub OAuth application
* at startup of Gitea register all configured providers and also on adding/deleting of new providers
* custom handling of errors in oauth2 request init + show better tip
* add ExternalLoginUser model and migration script to add it to database
* link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed
* remove the linked external account from the user his settings
* if user is unknown we allow him to register a new account or link it to some existing account
* sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers)

* from gorilla/sessions docs:
"Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
(we're using gorilla/sessions for storing oauth2 sessions)

* use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)

7 years agoProtected branches system (#339)
Denis Denisov [Tue, 21 Feb 2017 15:02:10 +0000 (17:02 +0200)]
Protected branches system (#339)

* Protected branches system

* Moved default branch to branches section (`:org/:reponame/settings/branches`).
* Initial support Protected Branch.
  - Admin does not restrict
  - Owner not to limit
  - To write permission restrictions

* reformat tmpl

* finished the UI and add/delete protected branch response

* remove unused comment

* indent all the template files and remove ru translations since we use crowdin

* fix the push bug

7 years agoAdded 1.0.2 to changelog (#998)
Thomas Boerger [Tue, 21 Feb 2017 14:38:38 +0000 (15:38 +0100)]
Added 1.0.2 to changelog (#998)

7 years agodisable console output xorm log on ssh (#993)
Lunny Xiao [Tue, 21 Feb 2017 13:34:05 +0000 (21:34 +0800)]
disable console output xorm log on ssh (#993)

7 years agoFix typo (#990)
Christoph König [Tue, 21 Feb 2017 01:14:37 +0000 (02:14 +0100)]
Fix typo (#990)

7 years agoadd missing copyright header (#992)
Willem van Dreumel [Tue, 21 Feb 2017 00:46:14 +0000 (01:46 +0100)]
add missing copyright header (#992)

7 years agoupdate xorm for fixing bug on processor BeforeSet and AfterSet when Find a map (...
Lunny Xiao [Mon, 20 Feb 2017 11:33:10 +0000 (19:33 +0800)]
update xorm for fixing bug on processor BeforeSet and AfterSet when Find a map (#987)

7 years agoMake Xorm log configurable (#174)
Lunny Xiao [Mon, 20 Feb 2017 08:11:13 +0000 (16:11 +0800)]
Make Xorm log configurable (#174)

* make xorm log configable

* bug fixed for other sub commands except web

* rebase and fix xorm log

* bug fix for TrimSpace

7 years agoFix table headers (#980)
Andrew Boyarshin [Mon, 20 Feb 2017 03:13:20 +0000 (10:13 +0700)]
Fix table headers (#980)

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
7 years agoadd release cycle to contributing (#949)
Lunny Xiao [Sun, 19 Feb 2017 15:23:37 +0000 (23:23 +0800)]
add release cycle to contributing (#949)