Commit Graph
100 Commits
Author SHA1 Message Date
Lunny XiaoandKim "BKC" Carlbäcker 34182c87ec release notes for v1.1.4 2017-09-04 15:34:29 +02:00
Lunny Xiao c401788383 bug fixed 2017-09-04 14:27:53 +08:00
Lunny XiaoandGitHub 09fff9e1c1 fix 500 error when view an issue which's milestone deleted (#2297) (#2299) 2017-08-14 10:45:06 +08:00
Lunny XiaoandAndrey Nering 622552b709 Fix deleted milestone bug (#1942) (#2300)
* Fix deleted milestone bug

* Use locale for ghost milestone name

* Fix pointer bug
2017-08-13 19:18:57 -03:00
Lunny XiaoandGitHub 1709297701 Fix SHA1 hash linking (#2143) (#2293)
This changes the regex to look for a hash from 7 to 40 characters,
to match the use of abbreviated hash lookups in both git and github.
The restriction of not being a pure number is also removed because
1234567 is now considered a valid abbreviated hash, as is deadbeef.

A note has been added to the top of the code to state that the
literal regex match is fine, but no extra validation is currently
performed so some false positives are expected.

A future change could ensure that the hash exists in the repository
before rendering it as a link, although this might incur a slight
performance penalty.

Reverts part of commit 4a46613 and fixes #2053.
2017-08-12 09:32:56 +08:00
Lunny XiaoandLauris BH 06a554c22a ignore coverage for release (#2263) 2017-08-05 12:14:59 +03:00
Lunny XiaoandGitHub 00bd47ae5c add changelog of release v1.1.3 (#2251) 2017-08-03 16:50:21 +08:00
Lunny Xiao b20f1ab47f fix some bug 2017-07-28 14:36:18 +08:00
Lunny XiaoandBo-Yi Wu bbe6aa349f fix bug not to trim space of login username (#1806) 2017-05-29 06:10:11 -05:00
Lunny XiaoandKim "BKC" Carlbäcker fa059debca fix delete user failed on sqlite (#1321) 2017-05-17 12:43:22 +02:00
Lunny Xiao 506c98df5b fix update avatar 2017-05-14 13:39:53 +08:00
Lunny XiaoandGitHub d9bdf7a65d fix migration failed when authorized_keys is not exist (#1375)
* fix wiki bugs (#1294)

* fix migration failed when authorized_keys is not exist
2017-03-23 23:07:30 +08:00
Lunny XiaoandGitHub 11ad296347 fix wiki bugs (#1294) (#1338) 2017-03-20 22:54:33 +08:00
Lunny XiaoandGitHub 5fad54248f fix forget migration for wiki hooks (#1227) (#1237) 2017-03-17 13:01:33 +08:00
Lunny XiaoandGitHub 65eea82c3e fix repo settings external tracker failed and check external urls (#1215) (#1236) 2017-03-13 16:23:00 +08:00
Lunny XiaoandGitHub fac75b8086 Fix upgrade failed after ever rollback (#1194) (#1197)
* fix upgrade failed after rollback

* fix upgrade failed after rollback

* fix possible upgrade twice fail after rollback
2017-03-11 17:01:22 +08:00
Lunny XiaoandGitHub e4706127f9 bug fixed for delete repo failed (#1193) (#1195) 2017-03-10 22:28:00 +08:00
Lunny XiaoandGitHub c9baf9d14b fix ini format incomiptable with crowdin (#1177) (#1192) 2017-03-10 20:59:51 +08:00
Lunny XiaoandThomas Boerger 374f1ba41f update locale files to 2017-03-10 00:07 +08 (#1163) 2017-03-09 17:37:27 +01:00
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