]> source.dussan.org Git - gitea.git/log
gitea.git
7 years agoRequire token before checking membership/ownership 1905/head
Ethan Koenig [Wed, 7 Jun 2017 16:20:32 +0000 (12:20 -0400)]
Require token before checking membership/ownership

7 years agoSend mails as HTML as default. Setting for send as plain text. (#1648)
Jonas Östanbäck [Wed, 7 Jun 2017 01:14:31 +0000 (03:14 +0200)]
Send mails as HTML as default. Setting for send as plain text. (#1648)

* Send mails as HTML as default. Setting for send as plain text.
 * Add new option SendAsPlainText. remove EnableHTMLAlternative
 * Send HTML mails as default
 * Add html check if html2text should be performed

* Send only multipart or plain. Add deprication warning for ENABLE_HTML_ALTERNATIVE

* Still use ENABLE_HTML_ALTERNATIVE for backward compatibility

* Changed to not ignore html2text errors

7 years agoMerge pull request #1892 from sapk-fork/update-git
Andrey Nering [Tue, 6 Jun 2017 19:35:05 +0000 (16:35 -0300)]
Merge pull request #1892 from sapk-fork/update-git

Update code.gitea.io/git

7 years agoUpdate code.gitea.io/git 1892/head
Antoine GIRARD [Tue, 6 Jun 2017 17:36:48 +0000 (19:36 +0200)]
Update code.gitea.io/git

7 years agoInclude formatting check to the `make test` (and thus also `check`) rule (#1366)
Sandro Santilli [Tue, 6 Jun 2017 13:53:16 +0000 (15:53 +0200)]
Include formatting check to the `make test` (and thus also `check`) rule (#1366)

* Include formatting check to the `make check` rule

... and give it its own standalone target too (make fmt-check)

Show diff on fmt-check failure
Do not allow running "fmt-check" with incompatible go version
Also simplify the `fmt` rule

* Forbid running "make fmt" with Go version != 1.7 or 1.8

* Ignore bindata.go for spelling and formatting checks

also remove duplicated variable assignment for GOFILES

* Run `make fmt`

7 years agoMake `LocalCopyPath` a setting instead of a hard-coded path (#1881)
Phil Hopper [Tue, 6 Jun 2017 09:09:54 +0000 (05:09 -0400)]
Make `LocalCopyPath` a setting instead of a hard-coded path (#1881)

7 years agoCenter-aligned login topbar (#1880)
Ethan Koenig [Tue, 6 Jun 2017 07:05:06 +0000 (03:05 -0400)]
Center-aligned login topbar (#1880)

* Center-aligned login topbar

* Center-align OpenID login

7 years agoMigration to fix existing owner team units (#1873)
Ethan Koenig [Mon, 5 Jun 2017 10:40:25 +0000 (06:40 -0400)]
Migration to fix existing owner team units (#1873)

7 years agoPrevent accidential selection of line numbers in code view (#1860)
silverwind [Mon, 5 Jun 2017 07:52:35 +0000 (09:52 +0200)]
Prevent accidential selection of line numbers in code view (#1860)

7 years agofeat: add check misspelling (#1877)
Bo-Yi Wu [Mon, 5 Jun 2017 07:49:46 +0000 (02:49 -0500)]
feat: add check misspelling (#1877)

7 years agoMerge pull request #1874 from ethantkoenig/typo/issue_test
Andrey Nering [Sun, 4 Jun 2017 20:10:40 +0000 (17:10 -0300)]
Merge pull request #1874 from ethantkoenig/typo/issue_test

Fix misspelled variables

7 years agoMerge pull request #1875 from ethantkoenig/test/unused
Andrey Nering [Sun, 4 Jun 2017 20:10:10 +0000 (17:10 -0300)]
Merge pull request #1875 from ethantkoenig/test/unused

Run unused test

7 years agoRun unused test 1875/head
Ethan Koenig [Sun, 4 Jun 2017 18:28:17 +0000 (14:28 -0400)]
Run unused test

7 years agoFix misspelled variables 1874/head
Ethan Koenig [Sun, 4 Jun 2017 17:39:08 +0000 (13:39 -0400)]
Fix misspelled variables

7 years agofix: error from mktemp command in MacOS. (#1837)
Bo-Yi Wu [Sun, 4 Jun 2017 08:48:18 +0000 (03:48 -0500)]
fix: error from mktemp command in MacOS. (#1837)

* fix: error from mktemp command in MacOS.

* [ci skip] udpate temp name.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
7 years agogofmt (#1868)
Ethan Koenig [Sun, 4 Jun 2017 03:10:16 +0000 (23:10 -0400)]
gofmt (#1868)

7 years agoRename misnamed migration (#1867)
Ethan Koenig [Sun, 4 Jun 2017 03:09:50 +0000 (23:09 -0400)]
Rename misnamed migration (#1867)

7 years agoFix paginater length (#1866)
Ethan Koenig [Sun, 4 Jun 2017 03:07:20 +0000 (23:07 -0400)]
Fix paginater length (#1866)

7 years agoUse production version of vuejs. (#1869)
Antoine GIRARD [Sun, 4 Jun 2017 03:04:42 +0000 (05:04 +0200)]
Use production version of vuejs. (#1869)

7 years agoRemove annoying difference in button heights. (#1853)
Hussain Khalil [Sat, 3 Jun 2017 08:58:43 +0000 (04:58 -0400)]
Remove annoying difference in button heights. (#1853)

* Remove annoying difference in button heights.

Why was that even there?

See before & after: http://imgur.com/a/yKdUR

* (2/2) Remove annoying difference in button heights

7 years agoFix 404 for external tracking issues (#1852)
Ethan Koenig [Sat, 3 Jun 2017 05:56:36 +0000 (01:56 -0400)]
Fix 404 for external tracking issues (#1852)

* Fix 404 for external tracking issues

* Fix 404 for new/upload file

7 years agoDisplay draft releases (#1854)
Ethan Koenig [Sat, 3 Jun 2017 03:46:56 +0000 (23:46 -0400)]
Display draft releases (#1854)

* Display draft releases

* Include ctx.User in user cache

* Integration test

7 years agoFix bug in removeOrgRepo (#1858)
Ethan Koenig [Sat, 3 Jun 2017 01:06:10 +0000 (21:06 -0400)]
Fix bug in removeOrgRepo (#1858)

7 years agoDisplay all organization from user settings (#1739)
Rémy Boulanouar [Fri, 2 Jun 2017 08:43:44 +0000 (10:43 +0200)]
Display all organization from user settings (#1739)

* Display all organization from user settings

* fix Tab selection

* Update locale_en-US.ini

* Add a condition for display Create organization button

* Remove french translation

* Remove unnecessary admin flag

7 years agoFix change introduce by update of go-swagger. (#1727)
Antoine GIRARD [Fri, 2 Jun 2017 04:35:31 +0000 (06:35 +0200)]
Fix change introduce by update of go-swagger. (#1727)

7 years agoFix user profile activity feed (#1848)
Ethan Koenig [Fri, 2 Jun 2017 00:42:25 +0000 (20:42 -0400)]
Fix user profile activity feed (#1848)

* Fix user profile activity feed

* gofmt, and avoid overlapping database connections

7 years agoFix some mistakes (#1833)
Patrick G [Fri, 2 Jun 2017 00:41:52 +0000 (20:41 -0400)]
Fix some mistakes (#1833)

* Fix some mistakes

* Fixes

* Not correct -> incorrect or invalid

* Update according to comments

7 years agofix: only run test coverage on master branch. (#1838)
Bo-Yi Wu [Thu, 1 Jun 2017 18:07:24 +0000 (13:07 -0500)]
fix: only run test coverage on master branch. (#1838)

7 years agoUpdate code.gitea.io/git (#1849)
Ethan Koenig [Thu, 1 Jun 2017 01:43:11 +0000 (21:43 -0400)]
Update code.gitea.io/git (#1849)

7 years agoUse a better default MAX_GIT_DIFF_LINE_CHARACTERS (#1845)
silverwind [Thu, 1 Jun 2017 01:10:11 +0000 (03:10 +0200)]
Use a better default MAX_GIT_DIFF_LINE_CHARACTERS (#1845)

Tests indicate that line length alone does not make browsers slow, so
increase the default threshold after which diffs get surpressed for line
length from 500 to a more reasonable 5000 characters.

Fixes: https://github.com/go-gitea/gitea/issues/1826
7 years agoDon't ignore error in getMergeCommit (#1843)
Ethan Koenig [Thu, 1 Jun 2017 00:51:24 +0000 (20:51 -0400)]
Don't ignore error in getMergeCommit (#1843)

7 years agoFix locking bug in removeOrgRepo (#1842)
Ethan Koenig [Thu, 1 Jun 2017 00:41:14 +0000 (20:41 -0400)]
Fix locking bug in removeOrgRepo (#1842)

7 years agoFix pull request compare link (#1832)
Ethan Koenig [Wed, 31 May 2017 14:47:42 +0000 (10:47 -0400)]
Fix pull request compare link (#1832)

* Fix pull request compare link

* Integration test

7 years agoFix status table race condition (#1835)
Ethan Koenig [Wed, 31 May 2017 08:57:17 +0000 (04:57 -0400)]
Fix status table race condition (#1835)

7 years agoAdd variable for docker tag (#1825)
himaaaatti [Wed, 31 May 2017 01:16:51 +0000 (10:16 +0900)]
Add variable for docker tag (#1825)

Signed-off-by: Shunsuke Mie <sux2mfgj@gmail.com>
7 years agoFix FOUC on Firefox (#1728)
Sondre Nilsen [Wed, 31 May 2017 01:05:49 +0000 (03:05 +0200)]
Fix FOUC on Firefox (#1728)

Firefox users will experience a flash of unstyled content on loading
various pages, this patch will fix this issue using Filament Groups
loadCSS library to asynchronously load the CSS responsible for the FOUC.

Will fix #1698.

Signed-off-by: Sondre Nilsen <nilsen.sondre@gmail.com>
7 years agoFix PR template error (#1834)
Ethan Koenig [Tue, 30 May 2017 12:04:12 +0000 (08:04 -0400)]
Fix PR template error (#1834)

7 years agoUpdate code.gitea.io/git (#1824)
Ethan Koenig [Tue, 30 May 2017 09:32:01 +0000 (05:32 -0400)]
Update code.gitea.io/git (#1824)

* Update code.gitea.io/git

* Update function calls

* govendor fetch

7 years agoUse ghost users in issues/PRs (#1831)
Ethan Koenig [Tue, 30 May 2017 06:08:36 +0000 (02:08 -0400)]
Use ghost users in issues/PRs (#1831)

7 years agouse writeTmpKeyFile in calcFingerprint (#1828)
Timo Myyrä [Mon, 29 May 2017 11:51:16 +0000 (14:51 +0300)]
use writeTmpKeyFile in calcFingerprint (#1828)

this makes calcFingerprint use SSH.KeyTestpath instead of os temp dir.

7 years agoxxx_active_code_live setting in printed in hours and minutes instead … (#1814)
Jonas Östanbäck [Mon, 29 May 2017 07:35:47 +0000 (09:35 +0200)]
xxx_active_code_live setting in printed in hours and minutes instead … (#1814)

* xxx_active_code_live setting in printed in hours and minutes instead of just hours

* Update app.ini description of xxx_code_lives settings

7 years agoAdd Gitea Webhook (#1755)
Rémy Boulanouar [Mon, 29 May 2017 07:17:15 +0000 (09:17 +0200)]
Add Gitea Webhook (#1755)

* Replace Gogs by Gitea

* Fix missing changes

* Create Gitea webhook and put Gogs webhook apart.

7 years agoMerge pull request #1750 from andreynering/dashboard-search-org-repos
Andrey Nering [Sat, 27 May 2017 20:40:09 +0000 (17:40 -0300)]
Merge pull request #1750 from andreynering/dashboard-search-org-repos

More fixes for dashboard search

7 years agoFix private repo icon 1750/head
Andrey Nering [Sat, 27 May 2017 16:40:54 +0000 (13:40 -0300)]
Fix private repo icon

7 years agoFix invalid reference in feeds template (#1820)
Ethan Koenig [Sat, 27 May 2017 03:34:11 +0000 (23:34 -0400)]
Fix invalid reference in feeds template (#1820)

* Fix invalid reference in feeds template

* Comment for GetActAvatar

* Add integration test

7 years agoImprove clarity between is_activated and prohibit_login (#1788)
Patrick G [Sat, 27 May 2017 01:14:13 +0000 (21:14 -0400)]
Improve clarity between is_activated and prohibit_login (#1788)

It used to be unclear what the difference between the two are.

7 years agoresign drone and fix #1816 (#1819)
Lunny Xiao [Fri, 26 May 2017 15:08:38 +0000 (23:08 +0800)]
resign drone and fix #1816 (#1819)

7 years agoFix 500 for GET /teams/:id endpoints (#1811)
Ethan Koenig [Fri, 26 May 2017 13:15:45 +0000 (09:15 -0400)]
Fix 500 for GET /teams/:id endpoints (#1811)

* Fix 500 for GET /teams/:id endpoints

* Integration test for GET /team/:id

* Clean up integration test

7 years agofix bug to deny to add orgnization as a member of an orgnization or team (#1815)
Lunny Xiao [Fri, 26 May 2017 13:12:02 +0000 (21:12 +0800)]
fix bug to deny to add orgnization as a member of an orgnization or team (#1815)

7 years agoGive all units to owner team (#1812)
Ethan Koenig [Fri, 26 May 2017 08:03:37 +0000 (04:03 -0400)]
Give all units to owner team (#1812)

7 years agoFix deadlock in updateRepository (#1813)
Ethan Koenig [Fri, 26 May 2017 05:08:13 +0000 (01:08 -0400)]
Fix deadlock in updateRepository (#1813)

7 years agoFix activity feed (#1779)
Ethan Koenig [Fri, 26 May 2017 01:38:18 +0000 (21:38 -0400)]
Fix activity feed (#1779)

* Fix activity feed

Preserve actions after user/repo name change

* Add missing comment

* Fix migration, and remove fields completely

* Tests

7 years agoAdding #issuecomment to the URL in E-Mail notifications (#1674)
Jonas Franz [Thu, 25 May 2017 02:38:56 +0000 (04:38 +0200)]
Adding #issuecomment to the URL in E-Mail notifications (#1674)

* Added comment's hashtag to url for mail notifications.

Signed-off-by: Jonas <info@jonasfranz.software>
* Added comment's hashtag to url for mail notifications.
Added explanation to return statement.

Signed-off-by: Jonas <info@jonasfranz.software>
* Added comment's hashtag to url for mail notifications.
Added explanation to return statement + documentation.

Signed-off-by: Jonas <info@jonasfranz.software>
* Added comment's hashtag to url for mail notifications.

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replacing in-line link generation with HTMLURL. (+gofmt)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replaced action-based model with nil-based model. (+gofmt)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants.

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Updating comment for mailIssueCommentToParticipants

Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years agoRemove stale rule from Makefile (#1782)
Ethan Koenig [Thu, 25 May 2017 00:53:03 +0000 (20:53 -0400)]
Remove stale rule from Makefile (#1782)

7 years agoOnly run coverage on merges/pushes to master (#1783)
Ethan Koenig [Wed, 24 May 2017 16:13:18 +0000 (12:13 -0400)]
Only run coverage on merges/pushes to master (#1783)

7 years agofix bug not to trim space of login username (#1796)
Lunny Xiao [Wed, 24 May 2017 16:12:00 +0000 (00:12 +0800)]
fix bug not to trim space of login username (#1796)

7 years agoFix renaming bug (#1786)
Ethan Koenig [Wed, 24 May 2017 06:01:02 +0000 (02:01 -0400)]
Fix renaming bug (#1786)

7 years agoMake navbar scroll on overflow (#1777)
Patrick G [Wed, 24 May 2017 06:00:40 +0000 (02:00 -0400)]
Make navbar scroll on overflow (#1777)

* Scrollbars on overflow of horizontal nav

* Update _base.less

* Add fade out on right side of overflowing nav

* Update _base.less

7 years agoRename RepoCreationNum -> MaxCreationLimit (#1766)
Jonas Östanbäck [Wed, 24 May 2017 00:27:08 +0000 (02:27 +0200)]
Rename RepoCreationNum -> MaxCreationLimit (#1766)

7 years agoImprove grammar (#1775)
Patrick G [Tue, 23 May 2017 08:01:27 +0000 (04:01 -0400)]
Improve grammar (#1775)

7 years agoDelete repo redirects on repo deletion (#1776)
Ethan Koenig [Tue, 23 May 2017 08:00:10 +0000 (04:00 -0400)]
Delete repo redirects on repo deletion (#1776)

7 years agoMake side nav on dashboard stackable (#1778)
Patrick G [Tue, 23 May 2017 07:58:43 +0000 (03:58 -0400)]
Make side nav on dashboard stackable (#1778)

7 years agofix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)
Bo-Yi Wu [Sun, 21 May 2017 14:48:35 +0000 (22:48 +0800)]
fix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)

* fix: #1757 fix set MAX_CREATION_LIMIT as zero.

* fix: missing default value

7 years agoFix unloaded owner (#1770)
Ethan Koenig [Sun, 21 May 2017 06:35:45 +0000 (02:35 -0400)]
Fix unloaded owner (#1770)

7 years agoFix and test for delete user (#1713)
Ethan Koenig [Sat, 20 May 2017 08:48:22 +0000 (04:48 -0400)]
Fix and test for delete user (#1713)

* Fix and test for delete user

* Run updates in batches

* Unit test

7 years agoAdd error direclty when user tries to create new repo and limit already hit (#1767)
Jonas Östanbäck [Sat, 20 May 2017 08:47:48 +0000 (10:47 +0200)]
Add error direclty when user tries to create new repo and limit already hit (#1767)

7 years agoUpdate HighlightJS and fix YAML files highlighting (#1764)
Andrey Nering [Sat, 20 May 2017 03:52:35 +0000 (00:52 -0300)]
Update HighlightJS and fix YAML files highlighting (#1764)

* Update HighlightJS to 9.11.0

* Fix YAML files highlighting

7 years agoAdmin should always be allowed to create repos even if hit limit (#1765)
Jonas Östanbäck [Sat, 20 May 2017 03:51:19 +0000 (05:51 +0200)]
Admin should always be allowed to create repos even if hit limit (#1765)

7 years agofixes wrong after field in webhook payload (#1746)
Kim "BKC" Carlbäcker [Fri, 19 May 2017 10:12:27 +0000 (12:12 +0200)]
fixes wrong after field in webhook payload (#1746)

7 years agofix admin lost permission caused by #947 (#1753)
Kim "BKC" Carlbäcker [Fri, 19 May 2017 10:10:17 +0000 (12:10 +0200)]
fix admin lost permission caused by #947 (#1753)

7 years agofix admin lost permission caused by #947 1753/head
Lunny Xiao [Fri, 19 May 2017 00:59:26 +0000 (08:59 +0800)]
fix admin lost permission caused by #947

7 years agoAdd button to admin ui (#1738)
Rémy Boulanouar [Fri, 19 May 2017 00:20:41 +0000 (02:20 +0200)]
Add button to admin ui (#1738)

* Add button to admin ui

* Update according to review

* Update locale_fr-FR.ini

* Rollback to locale french file

7 years agoAdd swagger comment for MirrorSync (#1747)
Jonas Östanbäck [Fri, 19 May 2017 00:20:06 +0000 (02:20 +0200)]
Add swagger comment for MirrorSync (#1747)

* Add swagger comment for MirrorSync

* Generate swagger.v1.json

7 years agoFix test
Andrey Nering [Thu, 18 May 2017 17:35:06 +0000 (14:35 -0300)]
Fix test

There was a panic when there's no logged in user

7 years agoAdd units to team (#947)
Lunny Xiao [Thu, 18 May 2017 14:54:24 +0000 (22:54 +0800)]
Add units to team (#947)

* add units to team

* fix lint

* finish team setting backend

* finished permission controll on routes

* fix import blank line

* add unit check on ssh/http pull and push and fix test failed

* fix fixtures data

* remove unused code

7 years agoCorrect grammar in APIEmpty documentation (#1748)
Jonas Östanbäck [Thu, 18 May 2017 14:39:42 +0000 (16:39 +0200)]
Correct grammar in APIEmpty documentation (#1748)

* Correct grammar in APIEmpty doc

* Generate swagger.v1.json

7 years agoShow repos acording to user/organization
Andrey Nering [Thu, 18 May 2017 14:28:29 +0000 (11:28 -0300)]
Show repos acording to user/organization

7 years agoRemove colaborative repo panel
Andrey Nering [Thu, 18 May 2017 14:16:04 +0000 (11:16 -0300)]
Remove colaborative repo panel

7 years agoFix org repos not showing on dashboard search
Andrey Nering [Thu, 18 May 2017 14:15:32 +0000 (11:15 -0300)]
Fix org repos not showing on dashboard search

7 years agofixes wrong after field in webhook payload 1746/head
Diep Pham [Thu, 18 May 2017 05:16:36 +0000 (12:16 +0700)]
fixes wrong after field in webhook payload

when merge pull request

7 years agoFix bad grammar and wordiness (#1741)
Patrick G [Thu, 18 May 2017 01:03:43 +0000 (01:03 +0000)]
Fix bad grammar and wordiness (#1741)

* Fix bad grammar and wordiness

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

7 years agoChange two factor code entry box from text to number (#1733)
Patrick G [Tue, 16 May 2017 07:30:20 +0000 (03:30 -0400)]
Change two factor code entry box from text to number (#1733)

7 years agofix avatar update bug (#1729)
Lunny Xiao [Tue, 16 May 2017 00:36:09 +0000 (08:36 +0800)]
fix avatar update bug (#1729)

7 years agore-Generate swagger.json (#1722)
Antoine GIRARD [Sun, 14 May 2017 09:37:15 +0000 (11:37 +0200)]
re-Generate swagger.json (#1722)

changes introduced to repo format by : go-gitea/gitea#1687 go-gitea/go-sdk#58  go-gitea/gitea#1668 go-gitea/go-sdk#56

7 years agoAdd new text for reset password flash (#1718)
Jonas Östanbäck [Sun, 14 May 2017 02:38:30 +0000 (04:38 +0200)]
Add new text for reset password flash (#1718)

* Forgot password should use ResetPwdCodeLives, not ActiveCodeLives
 * Improve documentation for different send mail functions related to password reset
 * Improve documentation in conf/app.ini regarding xxx_CODE_LIVE_MINUTES settings

7 years agogofmt (#1710)
Ethan Koenig [Fri, 12 May 2017 08:09:53 +0000 (04:09 -0400)]
gofmt (#1710)

7 years agoFix rendering of issue checkboxes (#1709)
Ethan Koenig [Fri, 12 May 2017 07:52:45 +0000 (03:52 -0400)]
Fix rendering of issue checkboxes (#1709)

7 years agoHide the create organization button (in dashboard/organization section) (#1705)
Jun Hsieh ♞ [Fri, 12 May 2017 07:10:25 +0000 (00:10 -0700)]
Hide the create organization button (in dashboard/organization section) (#1705)

when the user has no such permission.

7 years agoAdded Parent property to the repo API (#1687)
guyzmo [Fri, 12 May 2017 03:09:26 +0000 (05:09 +0200)]
Added Parent property to the repo API (#1687)

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
7 years agoDon't recreate database in integration tests (#1697)
Ethan Koenig [Thu, 11 May 2017 15:32:43 +0000 (11:32 -0400)]
Don't recreate database in integration tests (#1697)

7 years agoCorrect spelling mistakes (#1703)
Jonas Östanbäck [Thu, 11 May 2017 01:03:34 +0000 (03:03 +0200)]
Correct spelling mistakes (#1703)

* Nitpicking

7 years agoLDAP user synchronization (#1478)
Lauris BH [Wed, 10 May 2017 13:10:18 +0000 (16:10 +0300)]
LDAP user synchronization (#1478)

7 years agomarkup: microoptimise for many short filenames in directory (#1534)
mappu [Tue, 9 May 2017 14:20:22 +0000 (02:20 +1200)]
markup: microoptimise for many short filenames in directory (#1534)

* markup: microoptimise for many short filenames in directory

Move strings.ToLower() after the early-return length check. This is a safe operation in all cases and should slightly improve directory listing performance when a directory contains many thousands of files with short filenames.

* markup: expand test cases for IsReadmeFile()

7 years agoremove sqlite tag when integration test with mysql/postgres AND recreate database...
Lunny Xiao [Tue, 9 May 2017 13:42:55 +0000 (21:42 +0800)]
remove sqlite tag when integration test with mysql/postgres AND recreate database when init integration test (#1693)

7 years agoRealy don't cache apk index
Daniel Wendler (@cassandra) [Mon, 8 May 2017 11:09:20 +0000 (13:09 +0200)]
Realy don't cache apk index

Actualy the "-U --no-cache" effectivly is treated as --no-cache
was never specified:

/ # apk -U --no-cache add sed
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
(1/1) Installing sed (4.2.2-r0)
Executing busybox-1.25.1-r0.trigger
OK: 4 MiB in 12 packages
/ # ls -la /var/cache/apk/
total 1004
drwxr-xr-x    1 root     root            70 May  8 11:08 .
drwxr-xr-x    1 root     root            29 Mar  3 11:20 ..
-rw-r--r--    1 root     root        732807 May  5 07:11 APKINDEX.c51f8f92.tar.gz
-rw-r--r--    1 root     root        293014 May  1 12:37 APKINDEX.d09172fd.tar.gz

So removing the "-U" fix this behavior.

7 years agoImprove dashboard repo search (#1652)
Andrey Nering [Tue, 9 May 2017 00:31:30 +0000 (21:31 -0300)]
Improve dashboard repo search (#1652)

* Add VueJS

* Improve dashboard search

* Fix tab switching

* Fix input autofocus

7 years agoAdd configuration option for default permission to create Organizations (#1686)
Lauris BH [Mon, 8 May 2017 19:51:53 +0000 (22:51 +0300)]
Add configuration option for default permission to create Organizations (#1686)

7 years agofix potential sqlite lock #1680
Kim "BKC" Carlbäcker [Mon, 8 May 2017 08:02:44 +0000 (10:02 +0200)]
fix potential sqlite lock #1680

7 years agofix bug when push a branch name with / & fix an integration test bug (#1689)
Lunny Xiao [Mon, 8 May 2017 02:55:27 +0000 (10:55 +0800)]
fix bug when push a branch name with / & fix an integration test bug (#1689)

7 years agoShow commit status icon in commits table (#1688)
Lauris BH [Sun, 7 May 2017 14:40:31 +0000 (17:40 +0300)]
Show commit status icon in commits table (#1688)

* Show commit status icon in commits table

* Add comments

* Fix icons

* Few more places where commit table is displayed

* Change integration test to use goquery for parsing html

* Add integration tests for commit table and status icons

* Fix status to return lates status correctly on all databases

* Rewrote lates commit status selects