Commit Graph
100 Commits
Author SHA1 Message Date
Lunny XiaoandGitHub 80f900ebae Fix avatar enumable (#1049)
* fix avatar enumable

* fix import style
2017-02-25 22:58:57 +08:00
Lunny XiaoandGitHub 19b3c45ca7 fix 500 when use a duplicat email instead of giving an error tip (#1040) 2017-02-25 22:57:06 +08:00
Lunny XiaoandGitHub cd1821a7e2 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
2017-02-25 22:54:40 +08:00
Lunny XiaoandGitHub e8e56da9ac fix #13 (#1042) 2017-02-25 22:53:57 +08:00
Lunny XiaoandGitHub fc4f7e82f9 refactor for searching user (#1038)
* refactor for searching user

* fix like bug

* better format for builder cond
2017-02-25 21:42:20 +08:00
Lunny XiaoandGitHub 8894f856de fix 500 when change user setting email to an exist email (#1039) 2017-02-25 21:39:52 +08:00
Lunny XiaoandGitHub c0ea3963be fix delete repo will hang on postgres (#1044) 2017-02-24 23:19:13 +08:00
Lunny XiaoandGitHub 12e71e5706 Removed footer copyright year (#829)
* change footer copyright year from 2016 to 2017

* add 2016 copyright back

* remove the copyright year
2017-02-24 16:21:45 +08:00
Lunny XiaoandGitHub d077fd084a added missing new struct sync (#1021) 2017-02-23 15:05:37 +08:00
Lunny XiaoandGitHub 0e6b9ea786 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
2017-02-23 11:40:44 +08:00
Lunny XiaoandGitHub 1f7837d6d6 Refactor for issues loadattributes of a repository (#971)
* refactor for issues loadattributes of a repository

* refactors
2017-02-22 22:03:59 +08:00
Lunny XiaoandGitHub d6748284bd fix panic when push but the only log mode console is disabled by serv and update commands (#1007) 2017-02-22 19:44:51 +08:00
Lunny XiaoandGitHub 70ae6d197b disable console output xorm log on ssh (#993) 2017-02-21 21:34:05 +08:00
Lunny XiaoandGitHub c5f8b96dda update xorm for fixing bug on processor BeforeSet and AfterSet when Find a map (#987) 2017-02-20 19:33:10 +08:00
Lunny XiaoandGitHub 04fdeb9d8d 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
2017-02-20 16:11:13 +08:00
Lunny XiaoandGitHub c2c27891c9 add release cycle to contributing (#949) 2017-02-19 23:23:37 +08:00
Lunny XiaoandGitHub b8f70a27a5 Security: fix XSS attack on alert (#973) 2017-02-19 19:18:06 +08:00
Lunny XiaoandGitHub 6076c95dd1 Security: fix XSS attack on milestone (#976)
Reported by Miguel Ángel Jimeno.
2017-02-19 19:09:59 +08:00
Lunny XiaoandGitHub dbe6d2ff8e fix docker link on install page (#964) 2017-02-18 22:19:51 +08:00
Lunny XiaoandGitHub 847527fd6d Fix all the bugs in issues and pulls on dashboard (#943)
* fix all the bugs in issues and pulls on dashboard

* small fix and refactor

* add method getRepoIDs for IssueList
2017-02-17 08:58:19 +08:00
Lunny XiaoandGitHub 7fd14bf7bd optimization for team get repos (#953) 2017-02-16 12:07:58 +08:00
Lunny XiaoandGitHub 46320f9630 refactor notificationsForUser since xorm In support slice of customerize type (#956) 2017-02-16 12:07:00 +08:00
Lunny XiaoandGitHub 0642cb330c Small opitimization for getUserTeams (#954)
* Small opitimization for getUserTeams

* more compact
2017-02-16 12:06:23 +08:00
Lunny XiaoandGitHub 837d346090 fix some older Gogs upgrade to Gitea (#929) 2017-02-15 09:32:03 +08:00
Lunny XiaoandGitHub be55460b63 catch error on call setup on serv command (#932) 2017-02-15 09:25:21 +08:00
Lunny XiaoandKim "BKC" Carlbäcker 9c645b54dc bug fixed on issues and pulls 2017-02-15 01:17:07 +01:00
Lunny XiaoandGitHub cf47532ebc fix ssh domain default value to domain (#930) 2017-02-15 00:07:37 +08:00
Lunny XiaoandGitHub 4cfde304df bug fixed for my repository (#933) 2017-02-14 23:37:44 +08:00
Lunny XiaoandGitHub 7a9a5c8a69 Fix assigned issues dashboard (#920)
* Fix assigned/created issues in dashboard. (#3560)

* Fix assigned/created issues in dashboard.

* Use GetUserIssueStats for getting all Dashboard stats.

* Use gofmt to format the file properly.

* Replace &Issue{} with new(Issue).

* Check if user has access to given repository.

* Remove unnecessary filtering of issues.

* Return 404 error if invalid repository is given.

* Use correct number of issues in paginater.

* fix issues on dashboard
2017-02-14 22:15:18 +08:00
Lunny XiaoandGitHub 3a91ac51a9 fix bug of multiple forks (#928) 2017-02-14 22:14:29 +08:00
Lunny XiaoandGitHub 7eb8daffa3 Use fingerprint to check instead content for public key (#911)
* use fingerprint to check instead content for public key

* add fingerprint field for ErrKeyAlreadyExist
2017-02-14 14:12:52 +08:00
Lunny XiaoandGitHub 55ae78208e Small optimization for getTeamIDs (#919)
* small optimization for getTeamIDs

* rename getOrgTeamIDs to getUserTeamIDs and remove orderby
2017-02-14 11:46:46 +08:00
Lunny XiaoandKim "BKC" Carlbäcker d76f34ef51 small optimization for get issue labels 2017-02-12 06:46:51 +01:00
Lunny XiaoandGitHub 8a0be5e9f0 Bug fixed for deleted label in issue comment (#904)
* bug fixed for deleted label in issue comment

* fix indent
2017-02-11 20:56:57 +08:00
Lunny XiaoandGitHub cf0f451c37 Add delete branch track on pull request comments (#888)
* add delete branch track on pull request comments

* don't change vendor
2017-02-11 12:00:29 +08:00
Lunny XiaoandGitHub 55f2059f71 add vendoring back (#890) 2017-02-11 11:55:22 +08:00
Lunny XiaoandGitHub 284c0160c3 update xorm vendor and also fix #740 (#886) 2017-02-10 23:02:26 +08:00
Lunny XiaoandGitHub b6dd6210ea bug fixed for issue count (#881) 2017-02-09 17:59:57 +08:00
Lunny XiaoandGitHub c5887b0f28 fix watchers templates breaks (#870) 2017-02-08 22:13:48 +08:00
Lunny XiaoandGitHub 45a324b437 fix releases count and resolved #764 (#857) 2017-02-07 23:38:24 +08:00
Lunny XiaoandGitHub 02a881aa32 show tags on dashboard issues (#860) 2017-02-07 23:33:18 +08:00
Lunny XiaoandGitHub f35b20b042 track issue title changes (#841) 2017-02-05 22:36:00 +08:00
Lunny XiaoandGitHub 8a421b1fd7 Add units concept for modulable functions of a repository (#742)
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
2017-02-04 23:53:46 +08:00
Lunny XiaoandGitHub 3e0525b47d Track assignee for issue (#808)
* track assignee for issue

* fix lint

* use getUserByID instead Get
2017-02-03 23:09:10 +08:00
Lunny XiaoandGitHub 081485ecfd add milestone changed traker on issue view (#804) 2017-02-01 10:36:08 +08:00
Lunny XiaoandGitHub 77ab60df83 fix bug caused by #788 (#799) 2017-01-30 22:21:17 +08:00
Lunny XiaoandGitHub f94869d2d1 Track labels changed on issue view & resolved #542 (#788)
* track labels changed on issue view & resolved #542

* add missing head comment & sort & fix refresh
2017-01-30 20:46:45 +08:00
Lunny XiaoandGitHub bb5a6b7a07 fix xorm NewSession uncorrected usages (#774) 2017-01-28 00:11:41 +08:00
Lunny XiaoandGitHub 8c2381103a bug fixed issues 500 resolved #754 (#756) 2017-01-25 16:28:03 +08:00
Lunny XiaoandGitHub 2a80e5a81e bug fixed caused by #530 (#755) 2017-01-25 16:19:14 +08:00
Lunny XiaoandGitHub 907b6f943c update xorm for bugs fix (#728) 2017-01-23 19:11:57 +08:00
Lunny XiaoandGitHub a8048c19f3 Update xorm and fix dump command (#692)
* update xorm and fix dump

* catch database init error

* still use dumpTables

* fix dump bool type

* update vendor.json
2017-01-23 17:11:18 +08:00
Lunny XiaoandGitHub f8c2903484 fixed bugs on Wiki and resolved #667 (#674) 2017-01-21 20:50:51 +08:00
Lunny XiaoandGitHub 87ad4961f6 bug fixed for update repository (#664) 2017-01-14 10:07:04 +08:00
Lunny XiaoandKim "BKC" Carlbäcker 7209917fd7 bug fix release 2017-01-09 21:54:03 +01:00
Lunny XiaoandGitHub 61306fa737 Make releases faster than before and resolved #490 (#588)
* make releases faster than before and resolved #490

* fix comment
2017-01-06 09:51:15 +08:00
Lunny XiaoandThomas Boerger 6efa80a471 Add the note forked from gogs (#590)
* add the note forked from gogs

* make the sentence simple
2017-01-05 10:49:07 +01:00
Lunny XiaoandGitHub 09dabe2ff2 fix bug #564 (#567) 2017-01-03 16:27:11 +08:00
Lunny XiaoandGitHub 980dd0bf51 Update xorm and dependencies vendor for feature to dump to other database (#565)
* update xorm and dependencies vendor for feature to dump to other database

* fix golint
2017-01-03 16:20:28 +08:00
Lunny XiaoandGitHub 70900bd167 bug fixed for fork repos (#560) 2017-01-03 12:41:10 +08:00
Lunny XiaoandGitHub 51021585a7 build failed by deleting release by API (#562) 2017-01-03 11:45:56 +08:00
Lunny XiaoandKim "BKC" Carlbäcker 3c7116382f change the default action when deleting a release to not delete tag 2017-01-03 02:27:38 +01:00
Lunny XiaoandGitHub 727675dd46 fix config session missing data row & resolved #517 (#549) 2017-01-02 12:33:15 +08:00
Lunny Xiao 96c201273e resolved #517: fix admin ui data row missing 2016-12-31 18:58:54 +08:00
Lunny XiaoandGitHub 6e5fffbd3f resolved #485: when migrate empty wiki repo, then ignore (#541) 2016-12-31 17:34:34 +08:00
Lunny Xiao bf85c82087 fix windows build broken by #416 2016-12-31 17:16:02 +08:00
Lunny XiaoandGitHub 527c2dd665 Support http service graceful restart (#416)
* support http service graceful restart

* fix dependencies
2016-12-31 09:00:33 +08:00
Lunny XiaoandGitHub 2d1a1fce93 Cache users on list releases (#527) 2016-12-29 21:21:19 +08:00
Lunny XiaoandThomas Boerger ac51caa517 add default values for SSH settings (#500) 2016-12-29 11:51:15 +01:00
Lunny XiaoandGitHub 799d0c2030 slight optimization for GetUserRepositories (#498) 2016-12-29 02:53:33 -06:00
Lunny XiaoandGitHub c463b1b8cb Optimization for user.GetRepositoryAccesses to reduce db query times (#495)
* optimization for user.GetRepositoryAccesses to reduce db query times

* fix missing cache
2016-12-28 09:34:35 +08:00
Lunny XiaoandKim "BKC" Carlbäcker 8f1c311b90 ignore static files statstics for linguist 2016-12-27 16:49:25 +01:00
Lunny XiaoandKim "BKC" Carlbäcker 7802699f52 fix installation page ssh domain unavilable 2016-12-27 12:00:18 +01:00
Lunny XiaoandKim "BKC" Carlbäcker ba134bd27a fix 500 when delete orgnization and resolved #486 2016-12-27 12:00:12 +01:00
Lunny XiaoandGitHub 4b7594d9fa Provide button to delete merged pull request (#441)
* provide button to delete merged pull request

* golint fix
2016-12-25 23:27:25 +08:00
Lunny XiaoandGitHub b0c6217c4d Fix broken godoc link and add arch in English README (#463)
* fix broken godoc link and add arch in English README

* typo
2016-12-23 22:57:18 +08:00
Lunny XiaoandGitHub eaa7b3c3f5 update zh readme (#462) 2016-12-23 22:39:24 +08:00
Lunny XiaoandGitHub a822bba3e1 Add default values for settings (#455)
* add default values for settings

* more default values

* more default settings and labels resource

* mv locale to options
2016-12-23 15:18:05 +08:00
Lunny XiaoandThomas Boerger a12da66dfb resolved #394 (#396) 2016-12-23 01:26:01 +01:00
Lunny XiaoandGitHub c21e2c4151 fix tag webhook 404 error (#420) 2016-12-22 22:57:48 +08:00
Lunny XiaoandThomas Boerger 0e1392501d Check if file is a symlink with web editor (#3687) (#445)
* Check if file is a symlink with web editor (#3687)

* editor checks for symlinks

* translate file_is_a_symlink message

* credit translation author

* fix error constant
2016-12-22 13:27:32 +01:00
Lunny XiaoandThomas Boerger e0ecd9fd93 fix bug #1122 log.smtp receiver configure error (#3602) (#451) 2016-12-22 13:27:13 +01:00
Lunny XiaoandThomas Boerger 65b1875d2b New settings option for a custom SSH host (#3763) (#446)
* New settings option for a custom SSH host (#3763)

* let default ssh listen addr empty
2016-12-22 13:26:43 +01:00
Lunny XiaoandThomas Boerger 11df7ebfc5 init script gentoo (#447)
* init script for gentoo (#3761)

* replace Gogs to Gitea

* remove override port number

* remove port
2016-12-22 10:39:17 +01:00
Lunny XiaoandThomas Boerger 47a7529d96 update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
Lunny XiaoandGitHub 0c5c34d7dd UpdateIssueUsersByMentions was calling database write operations while (#443)
a transaction session was in progress. MailParticipants was failing
silently because of the SQLITE_LOCKED error. Make sure failures in
MailParticipants enter the log, and pass on the transaction context.

issue: let caller pass in database context, and use it
issue_comment: obtain database context to pass to UpdateIssueMentions
issue_comment: log any error from call to MailParticipants
issue_mail: pass on database context to UpdateIssueMentions
2016-12-22 17:00:39 +08:00
Lunny XiaoandThomas Boerger c46eb3f5b3 Fix homepage docs link broken (#417)
* fix homepage docs link broken

* fix homepage docs links after docs updated
2016-12-22 07:03:43 +01:00
Lunny XiaoandGitHub f8d94cb440 Update locales (#440)
* Update locales

* replace Gogs to Gitea
2016-12-21 23:28:42 +08:00
Lunny XiaoandThomas Boerger 2197d298cb Add Korean support (#437)
* Add Korean support

* replace Gogs to Gitea
2016-12-21 15:47:26 +01:00
Lunny XiaoandGitHub 8559d6f267 add ZH readme (#405) 2016-12-19 21:30:52 +08:00
Lunny XiaoandGitHub 7c46667e71 fixed vulnerabilities labels (#409) 2016-12-17 19:49:17 +08:00
Lunny XiaoandGitHub 15c3d14d55 fixed vulnerabilities on deleting release (#399) 2016-12-16 19:42:39 +08:00
Lunny XiaoandGitHub b4c794058a fixed vulnerabilities (#392) 2016-12-15 16:49:06 +08:00
Lunny XiaoandGitHub d771e978a1 Don't use custom PBKDF2 function (#382) 2016-12-15 09:24:27 +08:00
Lunny XiaoandGitHub 73710c00a8 bug fixed branch name for pushupdate (#380) 2016-12-13 15:19:42 +08:00
Lunny XiaoandGitHub 1ae6ccb5f1 Bug fixed for .dockerignore (#329)
* bug fixed for .dockerignore

* clean up
2016-12-01 23:05:28 +08:00
Lunny XiaoandGitHub 590a79ff8a Resolved #296 (#324)
* resolved #296

* Indentation fixed
2016-12-01 18:52:57 +08:00
Lunny XiaoandGitHub 2343feadd4 resolved #310: hide fork to self (#323) 2016-12-01 18:51:50 +08:00
Lunny Xiao 646e02b521 typo 2016-12-01 09:05:32 +08:00
Lunny XiaoandGitHub abf6c3a8e3 bug fixed caused by #295 (#299) 2016-11-29 14:57:36 +08:00