Gitlab设置,rake失败,因为没有--global user.name

时间:2013-05-08 22:55:05

标签: gitlab

按照5.1说明安装gitlab

https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md

当我运行命令来测试安装时,我收到错误“Git为用户配置?...没有”

root@gitlab:/home/git/gitlab# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... no
  Try fixing it:
  sudo -u git -H git config --global user.name  "GitLab"
  sudo -u git -H git config --global user.email "gitlab@gitlab.ac"
  For more information see:
  doc/install/installation.md in section "GitLab"
  Please fix the error above and rerun the checks.
Has python2? ... yes
python2 is supported version? ... yes

说明中没有说明为git用户设置user.name和user.email。 我可以安全地忽略此警告,还是应该偏离说明并进行设置?

1 个答案:

答案 0 :(得分:2)

你是对的没有。从Web界面编辑内容时需要此配置。我发送了pull request将其包含在安装文档中。