summaryrefslogtreecommitdiffstats
path: root/cmd
Commit message (Collapse)AuthorAgeFilesLines
* Add external markup render support (#2570)Lunny Xiao2017-11-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | * 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
* Set session and indexers' data files rel to AppDataPath (#2192)Guillaume Dube2017-11-032-7/+4
| | | | | | | | | | * 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
* improve force push detect when push (#2798)Lunny Xiao2017-10-281-1/+1
|
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-141-23/+25
| | | | | | | | | | | | | | | | | | | | * improve protected branch to add whitelist support * fix lint * fix style check * fix tests * fix description on UI and import * fix test * bug fixed * fix tests and languages * move isSliceInt64Eq to util pkg; improve function names & typo
* Only update needed columns when update user (#2296)Lunny Xiao2017-08-121-1/+1
| | | | | | * only update needed columns when update user * fix missing update_unix column
* Set TMPDIR enviroment variable for dump command (#1915)Jonas Östanbäck2017-06-081-0/+5
|
* feat: add check misspelling (#1877)Bo-Yi Wu2017-06-051-1/+1
|
* fix admin lost permission caused by #947Lunny Xiao2017-05-191-1/+1
|
* Add units to team (#947)Lunny Xiao2017-05-181-0/+8
| | | | | | | | | | | | | | | | | | * 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
* Remove env user salt since no need to use (#1515)Lunny Xiao2017-05-061-2/+0
| | | | | | * remove env user salt since no need to use * remove unused variable from update.go
* Drop db operations from hook commands (#1514)Lunny Xiao2017-05-041-39/+21
| | | | | | | | | | * move all database operations from hook command to web command and instead of internal routes * bug fixed * adjust the import path sequences * remove unused return value on hookSetup
* Integration test framework (#1290)Ethan Koenig2017-04-251-629/+3
| | | | | | | | | | * Integration test framework * udpate drone sign * Formatting fixes and move router.go to routers/ * update sign for drone
* support health check via / and fix #969 (#1520)Lunny Xiao2017-04-201-0/+4
|
* feat: add download count field and unit testing for attachment. (#1512)Bo-Yi Wu2017-04-201-0/+5
| | | | | | | | | | | | | | * feat: add download count field and unit testing. * fix: unit testing * refactor: improve testing. * fix: update comment * add default value. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Add internal routes for ssh hook comands (#1471)Lunny Xiao2017-04-192-1/+8
| | | | | | | | | | | | | | | | * add internal routes for ssh hook comands * fix lint * add comment on why package named private not internal but the route name is internal * add comment above package private why package named private not internal but the route name is internal * remove exp time on internal access * move routes from /internal to /api/internal * add comment and defer on UpdatePublicKeyUpdated
* Better URL validation (#1507)Lauris BH2017-04-191-0/+2
| | | | | | | | | | | | | | | | | | | | * Add correct git branch name validation * Change git refname validation error constant name * Implement URL validation based on GoLang url.Parse method * Backward compatibility with older Go compiler * Add git reference name validation unit tests * Remove unused variable in unit test * Implement URL validation based on GoLang url.Parse method * Backward compatibility with older Go compiler * Add url validation unit tests
* refactor: show command help message. (#1486)Bo-Yi Wu2017-04-124-3/+7
|
* refactor update ssh key use time (#1466)Lunny Xiao2017-04-071-7/+1
|
* Add watch button on issueAndrey Nering2017-03-291-0/+1
|
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION (#1369)Sandro Santilli2017-03-291-2/+2
| | | | | | | | | | | * Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION Omit the configuration variable (the default) to be dependent. Fixes #1363 * Move OpenID settings under Service object * Show OpenID SignUp and SignIn status in admin panel / configuration
* Fix FCGI (over TCP) support (#1368)Pavel Korovin2017-03-231-1/+6
|
* LFS: Fix SSH authentication for trailing arguments (#1328)Fabian Zaremba2017-03-221-3/+5
| | | Fixes #1296
* LFS: Return 404 for unimplemented endpoints (#1330)Fabian Zaremba2017-03-201-0/+3
| | | | | | | Without this patch a 401 is returned for unspecified endpoints, making the LFS client ask for HTTP credentials. This behaviour was introduced with the new locking API: https://github.com/git-lfs/git-lfs/blob/master/docs/api/locking.md
* Show user OpenID URIs in their profile (#1314)Sandro Santilli2017-03-201-0/+1
|
* Add change-password admin command (#1304)Sandro Santilli2017-03-201-0/+52
| | | * Add change-password admin command
* feat: Only use issue and wiki on repo. (#1297)Bo-Yi Wu2017-03-181-12/+12
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-171-0/+21
|
* Allow push to init a wiki repo (#1279)Lunny Xiao2017-03-171-0/+6
| | | | | | * allow push to init a wiki repo * compact error check
* Batch updates for issues (#926)Ethan Koenig2017-03-151-6/+5
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-1/+1
|
* Rename /forget_password url to /forgot_passwordSandro Santilli2017-03-141-2/+2
| | | | | | | | | Also renames `forgot_password` translation key to `forgot_password_title` and `forget_password` to `forgot_password` Includes entry in CHANGELOG about the breaking change (and some markdown fixes in there)
* bug fix for dump when data directoryis not exist (#1025)Lunny Xiao2017-03-021-10/+13
|
* Comment force push detect to fix bug #1073 (#1077)Lunny Xiao2017-03-011-18/+41
| | | | | | | | * umcomment force push detect to fix bug #1073 * fix #1086 * handle global config set and fix #1086
* fix push (#1076)Lunny Xiao2017-02-271-1/+4
|
* remove unused struct (#1062)Lunny Xiao2017-02-271-8/+1
|
* remove unused fixme on dump command (#1065)Lunny Xiao2017-02-261-1/+1
|
* Move push update to post-receive and protected branch check to pre-receive ↵Lunny Xiao2017-02-253-163/+131
| | | | | | | | | | | | (#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
* Take back control of hooks (#1006)Lunny Xiao2017-02-232-4/+108
| | | | | | | | | | | | | | | | * 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
* Oauth2 consumer (#679)Willem van Dreumel2017-02-221-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
* Protected branches system (#339)Denis Denisov2017-02-213-0/+29
| | | | | | | | | | | | | | | | | | | | * Protected branches system * Moved default branch to branches section (`:org/:reponame/settings/branches`). * Initial support Protected Branch. - Admin does not restrict - Owner not to limit - To write permission restrictions * reformat tmpl * finished the UI and add/delete protected branch response * remove unused comment * indent all the template files and remove ru translations since we use crowdin * fix the push bug
* Fix typo (#990)Christoph König2017-02-211-1/+1
|
* Make Xorm log configurable (#174)Lunny Xiao2017-02-202-1/+3
| | | | | | | | | | * make xorm log configable * bug fixed for other sub commands except web * rebase and fix xorm log * bug fix for TrimSpace
* catch error on call setup on serv command (#932)Lunny Xiao2017-02-151-3/+5
|
* feat: Able to disable non-admin to create new organization (#927)Bo-Yi Wu2017-02-141-2/+8
|
* Markdown rendering overhaul (#186)Andrew Boyarshin2017-02-141-0/+5
| | | | | | | | | | | | * Markdown rendering overhaul Cleaned up and squashed commits into single one. Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com> * Fix markdown API, add markdown module and API tests, improve code coverage Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
* Handle SetModel error, fixes one errcheck report (#257)Sandro Santilli2017-02-121-1/+3
|
* fix watchers templates breaks (#870)Lunny Xiao2017-02-081-1/+1
|
* Add ENABLE_PPROF to app.ini and start pprof if true on localhost:6060 (#801)Matthias Loibl2017-02-051-0/+7
| | | | | | * Add ENABLE_PPROF to app.ini and start pprof if true on localhost:6060 * Add comment for golint to blank pprof import
* Fix remove unix socket listenAddr (#846)surefire2017-02-051-1/+1
| | | | Because the absence of the listenAddr is what is expected. The error will only be then when we can't remove.
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-4/+4
| | | | | | | | | | | | | | | | * 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