summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-25 07:10:23 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-25 07:10:23 -0400
commit7aa0a97d10a6810ab0b6fb482c7f8f179431104f (patch)
tree681d64942eef525de50e4fd411d0f5dc791578d7 /modules/base
parentbe69e74bc05b62deb6a5f9ae360af220cd5d5226 (diff)
downloadgitea-7aa0a97d10a6810ab0b6fb482c7f8f179431104f.tar.gz
gitea-7aa0a97d10a6810ab0b6fb482c7f8f179431104f.zip
Mirror fix
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/conf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 3eb01bdd56..1661681e7e 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -275,7 +275,7 @@ func NewConfigContext() {
RunUser = Cfg.MustValue("", "RUN_USER")
curUser := os.Getenv("USERNAME")
if len(curUser) == 0 {
- curUser = os.Getenv("whoami")
+ curUser = os.Getenv("USER")
}
if RunUser != curUser {
fmt.Printf("Expect user(%s) but current user is: %s\n", RunUser, curUser)