Commit Graph
100 Commits
Author SHA1 Message Date
Lunny XiaoandGitHub 60db7ed5ac fix scripts/mysql.sql from gogs to gitea (#1161) 2017-03-09 22:31:46 +08:00
Lunny XiaoandGitHub 626bcf0547 merge locale files from crowdin, updated to 2017-03-09 19:28 +08 (#1162) 2017-03-09 21:19:23 +08:00
Lunny XiaoandGitHub b40496533b fix leave team 404 (#1154) 2017-03-09 19:18:49 +08:00
Lunny XiaoandGitHub 5d40db629c fix random avatars (#1147) 2017-03-08 23:05:15 +08:00
Lunny XiaoandGitHub af9998b8a7 fix UI display problem when wiki name is non-ascii charset (#1142) 2017-03-08 08:34:22 +08:00
Lunny XiaoandGitHub fa41ddd3eb fix build failed on aarch64 (#1132) 2017-03-07 15:09:05 +08:00
Lunny XiaoandGitHub 2215840363 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.
2017-03-06 16:15:40 +08:00
Lunny XiaoandGitHub 0376029241 fix del org avatar potential delete all avtars (#1120) 2017-03-06 16:07:18 +08:00
Lunny XiaoandGitHub 7b64b2ddab fix install submit crash caused by xorm log (#1119) 2017-03-06 10:11:43 +08:00
Lunny XiaoandGitHub c1d5983d3e fix panic when get user repos from api (#1110) 2017-03-03 19:10:46 +08:00
Lunny XiaoandGitHub d2165a5890 fix compare button failed when there is no fork repos (#1104) 2017-03-03 16:53:59 +08:00
Lunny XiaoandGitHub 6bdfadf4a9 fix broken caused by boltdb in mips/mipsle (#1107) 2017-03-03 15:57:54 +08:00
Lunny XiaoandGitHub ef13bbaf7d Don't rewrite non-gitea public keys (#906)
* don't rewrite non-gitea public keys

* add comment for public key
2017-03-03 00:36:47 +08:00
Lunny XiaoandGitHub 341b3a0349 bug fix for dump when data directoryis not exist (#1025) 2017-03-02 17:41:33 +08:00
Lunny XiaoandGitHub 0380ce269f add back the default setting values and fix #739 (#1093) 2017-03-01 23:10:12 +08:00
Lunny XiaoandGitHub cfdc62e7fa 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
2017-03-01 23:01:03 +08:00
Lunny XiaoandGitHub 9cb08a3cf5 fix wrong num of user repos because of duplicated click delete button & performance optimization (#1092) 2017-03-01 12:05:45 +08:00
Lunny XiaoandGitHub c2eef171ff fix some typos (#1082) 2017-02-28 12:56:15 +08:00
Lunny XiaoandGitHub 9084bdd863 fix push (#1076) 2017-02-27 14:24:58 +08:00
Lunny XiaoandGitHub 50918084bb remove unused struct (#1062) 2017-02-27 09:49:05 +08:00
Lunny XiaoandGitHub e4134debd1 Remove unused vars (#1063)
* remove unused vars

* remove unused comment
2017-02-27 09:22:15 +08:00
Lunny XiaoandGitHub 32faec00e6 move all repo list functions as a standalone file (#1061) 2017-02-27 08:45:03 +08:00
Lunny XiaoandGitHub d4e38cf129 fix setMerged for remove unnecessary db connection (#1067) 2017-02-27 08:42:55 +08:00
Lunny XiaoandGitHub 522f194983 Bug fixed for org avatar caused by #1049 (#1070)
* bug fixed for org avatar caused by #1049

* use isfile only
2017-02-27 08:42:22 +08:00
Lunny XiaoandGitHub a5ac4c64fc refactor api issues load attributes for better performance (#1066) 2017-02-27 08:36:42 +08:00
Lunny XiaoandGitHub 35548a9d4e remove unused fixme on dump command (#1065) 2017-02-26 16:01:49 +08:00
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