diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-13 05:48:58 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-13 12:48:58 +0800 |
commit | 1d1c01875dc4f07b204a40aa662aa1782bf000fd (patch) | |
tree | cdeed3ba917dfd68951e93d60e4738e08f419316 /modules/setting | |
parent | f0a989c1d0843ab47a48be5219470a93a462e302 (diff) | |
download | gitea-1d1c01875dc4f07b204a40aa662aa1782bf000fd.tar.gz gitea-1d1c01875dc4f07b204a40aa662aa1782bf000fd.zip |
Autogenerate Version on build (#190)
* 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
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 7e3bfb47ba..ece149a0ce 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -53,10 +53,6 @@ const ( // settings var ( - // BuildTime information should only be set by -ldflags. - BuildTime string - BuildGitHash string - // AppVer settings AppVer string AppName string @@ -642,11 +638,6 @@ var logLevels = map[string]string{ func newLogService() { log.Info("%s %s", AppName, AppVer) - if len(BuildTime) > 0 { - log.Info("Build Time: %s", BuildTime) - log.Info("Build Git Hash: %s", BuildGitHash) - } - // Get and check log mode. LogModes = strings.Split(Cfg.Section("log").Key("MODE").MustString("console"), ",") LogConfigs = make([]string, len(LogModes)) |