summaryrefslogtreecommitdiffstats
path: root/cmd/serve.go
Commit message (Collapse)AuthorAgeFilesLines
* Take back control of hooks (#1006)Lunny Xiao2017-02-231-375/+0
| | | | | | | | | | | | | | | | * 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
* Protected branches system (#339)Denis Denisov2017-02-211-0/+4
| | | | | | | | | | | | | | | | | | | | * 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
* Make Xorm log configurable (#174)Lunny Xiao2017-02-201-1/+1
| | | | | | | | | | * 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
|
* Cleanup log messagingGabriel Jackson2017-02-021-4/+4
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* Git LFS support v2 (#122)Fabian Zaremba2016-12-261-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
* update code.gitea.io/git (#450)Lunny Xiao2016-12-221-1/+1
|
* Remove remaining Gogs reference on locales and cmd (#430)Joubert RedRat2016-12-211-4/+5
|
* Fixes panic when there's no user initialized (#358)Bwko2016-12-061-2/+2
|
* Fixes #316Antonio Facciolo2016-12-051-0/+4
| | | | | | | | | | | | | | | Export Pusher name as GITEA_PUSHER_NAME env variable Export also GITEA_UUID, but keep the uuid env variable for backward compatibility export pusher name ENV variable #316 change env variable prefix to GITEA_ Signed-off-by: Antonio Facciolo <afdev82@gmail.com> Export also GITEA_UUID #316 Keep uuid env variable for backward compatibility
* Catch os... errorsBwko2016-12-021-1/+3
|
* fix gofmt error.Bo-Yi Wu2016-11-151-1/+1
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-6/+6
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Use cli Flags directly and not some helper funcsMatthias Loibl2016-11-091-4/+7
| | | | Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* And othersSandro Santilli2016-11-071-1/+1
|
* ACCESS_MODE_* -> AccessMode*Sandro Santilli2016-11-071-7/+7
|
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Made linter happy in cmd folderThomas Boerger2016-11-041-3/+4
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-5/+5
|
* codegangsta/cli => urfave/cli (#3546)Kim "BKC" Carlbäcker2016-08-301-1/+1
|
* General code quality improvementUnknwon2016-08-161-1/+1
|
* Replace convert.To with APIFormat callsUnknwon2016-08-141-1/+2
|
* #2246 fully support of webhooks for pull requestUnknwon2016-08-141-1/+1
|
* Refactor User.Id to User.IDUnknwon2016-07-241-2/+2
|
* #3045 fix DEPRECATED Action signature erorrUnknwon2016-05-121-3/+5
|
* Post work for #2637Unknwon2016-02-271-1/+1
| | | | Improve test cases, config settings, also show SSH config settings on admin config panel.
* Fix wrong place to check disable SSHUnknwon2016-02-211-5/+6
|
* Replace uuid module with original packageUnknwon2016-02-201-2/+2
|
* #2650 fix possbility that use email as pusher user nameUnknwon2016-02-171-2/+9
| | | | | | | | | | Remove the possibility of using email as user name when user actually push through combination of email and password with HTTP. Also refactor update action function to replcae tons of arguments with single PushUpdateOptions struct. And define the user who pushes code as pusher, therefore variable names shouldn't be confusing any more.
* #2311 improve HTTP auth error messageUnknwon2015-12-301-1/+1
|
* #2282 fix utf-8 recognized as windows-1252Unknwon2015-12-251-1/+1
|
* #1692 add organization APIsUnknwon2015-12-171-1/+1
|
* fix possible disclosureUnknwon2015-12-141-6/+7
|
* Make serv/update use LOCAL_ROOT_URL instead publicAdam Strzelecki2015-12-091-1/+1
| | | | The reasoning for that is in the previous commit.
* Merge branch 'feature/wiki' into developUnknwon2015-11-301-15/+23
|\
| * finish wikiUnknwon2015-11-301-15/+23
| |
* | add line break after SSH error messageUnknwon2015-11-301-1/+1
|/
* print error log to client side when dev modeUnknwon2015-11-231-0/+3
|
* #1681 some fixes for builtin SSH server on WindowsUnknwon2015-11-231-2/+7
|
* fix api brokenUnknwon2015-11-151-1/+1
|
* convert missing nameUnknwon2015-11-091-1/+1
|
* #1266 convert name to lower when handle SSHUnknwon2015-11-091-2/+2
|
* fix 1540 and experimental SSH server supportUnknwon2015-11-081-2/+2
|
* go vet and fix #1890Unknwon2015-11-081-1/+13
|
* #1896 fatal when no needed update taskUnknwon2015-11-041-31/+39
|
* fix insecure tls when trigger taskUnknwon2015-10-261-1/+4
|
* New push to head repo of head branch: regenerate patch and retest applyUnknwon2015-10-241-19/+21
|
* add log for trigger hook when push through SSHUnknwon2015-10-051-1/+5
|
* simplify namesUnknwon2015-09-161-3/+3
|
* WIP: create PR - choose branchUnknwon2015-08-081-3/+3
|