浏览代码

Fixes panic when there's no user initialized (#358)

tags/v1.0.0
Bwko 7 年前
父节点
当前提交
026ad4aee7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      cmd/serve.go

+ 2
- 2
cmd/serve.go 查看文件

@@ -255,11 +255,11 @@ func runServ(c *cli.Context) error {
"User %s does not have level %v access to repository %s",
user.Name, requestedMode, repoPath)
}

os.Setenv("GITEA_PUSHER_NAME", user.Name)
}
}

os.Setenv("GITEA_PUSHER_NAME", user.Name)

uuid := gouuid.NewV4().String()
os.Setenv("GITEA_UUID", uuid)
// Keep the old env variable name for backward compability

正在加载...
取消
保存