summaryrefslogtreecommitdiffstats
path: root/main.go
Commit message (Collapse)AuthorAgeFilesLines
* Add golangci (#6418)kolaente2019-06-121-3/+3
|
* Add command to convert mysql database from utf8 to utf8mb4 (#7144)Lunny Xiao2019-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add command to convert mysql database from utf8 to utf8mb4 * Update cmd/convert.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update cmd/convert.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update cmd/convert.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update models/convert.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update models/convert.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update cmd/convert.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> * Update cmd/convert.go Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Use vfsgen instead of go-bindata (#7080)Lunny Xiao2019-06-031-0/+3
| | | | | | | | | | * use vfsgen instead of go-bindata * fix templates * fix fmt * vendor vsfgen
* Add work path CLI option (#6922)zeripath2019-05-141-3/+12
| | | | | Makes it possible to set the work path as a CLI option instead of relying on environment variables which are somewhat opaque
* Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631)zeripath2019-04-291-0/+103
|
* add make version on gitea version (#6485)Lunny Xiao2019-04-021-8/+15
|
* Better logging (#6038) (#6095)zeripath2019-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* Include Go toolchain to --version (#5830)Antoine GIRARD2019-01-241-2/+3
| | | | | | * Include Go version * fix import order
* Create AuthorizedKeysCommand (#5236)zeripath2018-11-011-0/+2
|
* fix: Accept web-command cli flags if web-command is commited (#5200)Peter Hoffmann2018-10-311-1/+1
| | | | | | | | | | | | | | | * fix: Accept web-command cli flags if web-command is commited * Added flags of default cmd CmdWeb to app-wide flags * If command *is* specified app-wide flags are ignored Resolves: #5065 Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * Removed style breaking newline * broken windows need to be fixed * provides requested change
* Add command for migrating database (#4954)Robert Ștefan2018-10-301-0/+1
|
* Add csv file render support defaultly (#4105)Lunny Xiao2018-07-211-0/+1
| | | | | | * add csv file render support defaultly * escaping csv column content
* Implements generator cli for secrets (#3531)Codruț Constantin Gușoi2018-02-181-0/+1
| | | Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
* Update hard-coded version to 1.5.0-dev (#3450)techknowlogick2018-02-031-1/+1
| | | | | Now that 1.4.0 is out the new target is 1.5.0 (See #2390 and #2988 for more context if needed)
* Make the default action for the gitea executable that of running the ↵Morgan Bazalgette2018-01-101-0/+3
| | | | webserver (#3331)
* Update hard-coded version to 1.4.0-dev (#2988)techknowlogick2017-11-271-1/+1
| | | Now that 1.3.0 is out the new target is 1.4.0
* Update hard-coded version to 1.3.0-dev (#2390)Sandro Santilli2017-10-121-1/+1
| | | | | | * Use -dev (1.3.0-dev is less than 1.3.0, according to semver) * Use fake version for testing purpose
* Add init support of orgmode document type on file view and readme (#2525)Lunny Xiao2017-09-211-0/+4
| | | | | | | | | | | | | | * add init support of orgmode document type on file view and readme * fix imports * fix imports and readmeExist * fix imports order * fix format * remove unnecessary convert
* Fix for #828: Embed build tags (#1051)Jonas2017-02-281-1/+14
| | | | | | | | | | | | | | | | | | | | | * Fix for #828 Add build tags to ldflags and print in version output Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Reworked formatBuiltWith function Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Add tags to version information in admin panel Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Added new variable for use on admin page. Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Fixed incorrect indentation
* Move push update to post-receive and protected branch check to pre-receive ↵Lunny Xiao2017-02-251-1/+0
| | | | | | | | | | | | (#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-231-1/+1
| | | | | | | | | | | | | | | | * 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
* Cleanup log messagingGabriel Jackson2017-02-021-1/+1
| | | | | | | | | 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.
* fix: Remove call to set GOMAXPROCS (#577)Bo-Yi Wu2017-01-041-4/+1
|
* Raised version to 1.1.0 (#468)Thomas Boerger2016-12-241-1/+1
|
* Remove remaining Gogs reference on locales and cmd (#430)Joubert RedRat2016-12-211-1/+1
|
* Autogenerate Version on build (#190)Kim "BKC" Carlbäcker2016-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Autogenerate Version On Build * Fixes * Changed Version to v0.9.0 * balls * I hate newlines * Don't remove .VERSION-file on `make clean` * v0.9.0 => 1.0.0 * damn new-lines... * Always rebuild templates/.VERSION * Delete .VERSION * Update Makefile
* Catch os... errorsBwko2016-12-021-1/+7
|
* fixed bug #151 finally (#164)Lunny Xiao2016-11-121-2/+1
|
* ask for go get from code.gitea.io/gitea and change gogs to gitea on main ↵Lunny Xiao2016-11-111-4/+5
| | | | file (#146)
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | - 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
* Remove go version from build tags (#133)Matthias Loibl2016-11-101-2/+0
|
* Check unhandled errors (#128)Matthias Loibl2016-11-101-1/+2
|
* Linter doesn't like uppercase variablesThomas Boerger2016-11-041-3/+4
|
* Rename gogs.go to main.goMatthias Loibl2016-11-041-0/+41
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>