Commit Graph

1559 Commits (f9db60e3bdc34508b0267e4e74e8a8f8e36989c1)

Author SHA1 Message Date
Lunny Xiao b3d5ba6f90 Fix missing password length check when change password ()
* fix missing password length check when change password

* add tests for change password
Lunny Xiao 35cc5b0402
Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName ()
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName

* fix tests

* fix tests bug

* some improvements
Piotr Orzechowski 57edc3155f Default log level to Info without hardcoding it in installer ()
Ethan Koenig 91f3d77ceb Unit tests for wiki routers ()
Sondre Nilsen 86ee41ec03 Expandable commit bodies ()
* Initial working state of expandable commit bodies

* Fix all commits having showing button for multiline commits

* Refactor checking multiline messages method

* Force newlines with <br> in commit body

* Show multiple lines in the list view of repositories

* Fixed proper newlines and minor refactor

Use <pre> instead of <p>, this is so we can use \n instead of having to manually place <br> into the HTML. Makes it easier to display commit bodies.

* Fix commit list messages jumping around

* Fix indentation in view_list.tmpl

* Use vertical-align: baseline instead of top

* Refactor commit button toggle function

* Remove RenderCommitBodyLink function

* Add comments

* Add newline at the end of _repository.less

* Fix long commit bodies not properly wrapping inside <pre>

* Don't split on double newlines

* Show the commit body in commit view

* Update stylesheets

* Add/fix comments and run make fmt

* Fix spaces not being tabs
Ethan Koenig 013db70fce Removed unused field in form ()
Sandro Santilli 67b0d2175d Set OpenID support on by default when installing new instance ()
Duncan Ogilvie 551f3cbe42 Memory usage improvements ()
* govendor update code.gitea.io/git

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>

* Greatly improve memory usage

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
Antoine GIRARD 4035ab05fa Fix git lfs path ()
* add suffix .git

* Remove Content-Type on GET methods

* Add migrations to force creation before any further potential migration
Antoine GIRARD d99f4ab003 Git LFS lock api ()
* Implement routes

* move to api/sdk and create model

* Implement add + list

* List return 200 empty list no 404

* Add verify lfs lock api

* Add delete and start implementing auth control

* Revert to code.gitea.io/sdk/gitea vendor

* Apply needed check for all lfs locks route

* Add simple tests

* fix lint

* Improve tests

* Add delete test + fix

* Add lfs ascii header

* Various fixes from review + remove useless code + add more corner case testing

* Remove repo link since only id is needed.

Save a little of memory and cpu time.

* Improve tests

* Use TEXT column format for path + test

* fix mispell

* Use NewRequestWithJSON for POST tests

* Clean path

* Improve DB format

* Revert uniquess repoid+path

* (Re)-setup uniqueness + max path length

* Fixed TEXT in place of VARCHAR

* Settle back to maximum VARCHAR(3072)

* Let place for repoid in key

* Let place for repoid in key

* Let place for repoid in key

* Revert back
Ethan Koenig b7ebaf6d20 Various wiki bug fixes ()
* Update macaron

* Various wiki bug fixes
Lauris BH 0d4c63fd70
Fix go-get, src and raw urls to new scheme ()
Piotr Orzechowski 183da4c2c1 Fix language names ()
Ethan Koenig 2cb6c51158 Fix over-escaped characters ()
Lunny Xiao 10b54df2b2 Add dingtalk webhook ()
* add dingtalk webhook type

* add vendor

* some fixes

* fix name check

* fix name check & improvment
Jonas Bröms 1f7aab6e19 Drop deprecated GOGS_WORK_DIR use ()
schaffman5 7e6c198f21 Apply LANDING_PAGE config options for logged in users ()
* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.

* Updated comments.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.

* Updated comments.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Removed superfluous conditional and correct whitespace.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Update app.ini

Reverted new line.

* Formatting.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>
Lauris BH 7c3e605698 Fix memcache support when value is returned as string always ()
Lauris BH a6f337046f Update go-ini dependency and remove semicolon hack in translations ()
Sandro Santilli e735d8cb25 Gogs -> Gitea ()
rename label
Mura Li f4d12f8d97 Fix run command race ()
* Use exec.CommandContext to simplfy timeout handling

And fixing the data races which can be identified by the added tests when -race enabled.

* Use sleep commmand instead of reading from stdin

* Make the error handling go-esque
Jochen Rill f94e6fd7a5 Correct ldap username validation. ()
PR  was only partially applied. Spaces should not be at the start
and end of a username but they can be inside.
Lauris BH 134958fd9f
Fix localization texts that contain semicolon ()
Ethan Koenig f26f4a7e01 Update swagger documentation ()
* Update swagger documentation

Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation

* Restore delete comments
Ethan Koenig 5481be0ac5 Fix issue link rendering in commit messages ()
* Fix issue link rendering in commit messages

* Update page.tmpl

* No links for parens

* remove comment
Lauris BH ba2e0240c6
Add LFS object verification step after upload ()
* Add LFS object verification step after upload

* Fix file verification condition and small refactor

* Fix URLs

* Remove newline and return status 422 on failed verification

* Better error hadling
Lunny Xiao 62d0a4d882 Add external markup render support ()
* add external markup render support

* bug fixed

* refacotr codes and fix wrong error log

* fix comments and add check to prevent leaks

* add check for config file and improve the example

* check file close error

* use ioutil.TempFile instead uuid

* correct Render -> Parser

* improve warning when incorrect markup setting

* fix typos
Jacob Parry 6e2e7b325f Fix LFS not returning correct content length when requesting a range of bytes ()
Lunny Xiao ff9daa3e9b fix click create pull request button 404 ()
Mike Fellows be523152a8 Clean repository ROOT directory name with filepath.Clean ()
For better compatibility with Windows.
Lauris BH 57de1ff991
Fix API raw file content access for default branch ()
Lauris BH 08b124dd47
Fix API raw requests for commits and tags ()
Guillaume Dube 8798cf4e3b Set session and indexers' data files rel to AppDataPath ()
* Set session and indexers' data files rel to AppDataPath

The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.

* fix bug
Morlinest 1f04c00e2f Fix redirect url of legacy commits route ()
Cum Gun eecaba2031 Configurable SSH key exchange algorithm and MAC suite ()
Lauris BH 82fc50f4ee Fix Git LFS object/repo link storage in database and small refactoring ()
Ethan Koenig 513375c429 Make URL scheme unambiguous ()
* Make URL scheme unambiguous

Redirect old routes to new routes

* Fix redirects to new URL scheme, and update template

* Fix branches/_new endpoints, and update integration test
Ethan Koenig 5866eb2321 Code/repo search ()
Indexed search of repository contents (for default branch only)
Lauris BH eca05b09aa Add commit count caching ()
* Add commit count caching

* Small refactoring

* Add different key prefix for refs and commits

* Add configuratuion option to allow to change caching time or disable it
Bwko 3ab580c8d6 Add branch overiew page ()
* Add branch overiew page

* fix changed method name on sub menu

* remove unused code
Jonas Bröms e86a0bf3fe Add support for extra sendmail arguments ()
* Add support for extra sendmail arguments

* Sendmail args to exec.command should be a list

* Add go-shellquote package

* Use go-shellquote lib for parsing Sendmail args

* Only parse if sendmail is configured
Michael Kuhn 3af5b67ed0 Sync MaxGitDiffLineCharacters with conf/app.ini ()
MAX_GIT_DIFF_LINE_CHARACTERS was updated in  but the corresponding
default value of MaxGitDiffLineCharacters was not changed. This can lead
to inconsistencies.
Piotr Orzechowski b0f04e7593 Fix Polish language name spelling ()
Lunny Xiao 6eeadb2082 Hide unactive on explore users and some refactors ()
* hide unactive on explore users and some refactors

* fix test for removed Organizations

* fix test for removed Organizations

* fix imports

* fix logic bug

* refactor the toConds

* Rename TestOrganizations to TestSearchUsers and add tests for users

* fix other tests

* fix other tests

* fix watchers tests

* fix comments and remove unused code
Lunny Xiao 03900303a9 add default ssh ciphers ()
harry 81d1e54a49 Use identicon image for default gravatar. ()
* Use identicon image for default gravatar.

* Fixed tests.
spacetourist 7131c7d40d Configurable SSH cipher suite ()
* Configurable SSH cipher suite

* Update configuration file comment

* Add default in settings loading code

* Fix fmt and log messsage

* Remove default from code as this could probably might not be good idea
Lunny Xiao 985a39590b Use buffersize to reduce database connection when iterate ()
* use buffersize to reduce database connection when iterate

* fix typo

* add default value on app.ini comment
Jonas Bröms d4c9399576 Set default lfs content path ()
Lauris BH f3833b7ce4 Create new branch from branch selection dropdown ()
* Create new branch from branch selection dropdown and rewrite it to VueJS

* Make updateLocalCopyToCommit as not exported

* Move branch name validation to model

* Fix possible race condition