2013-05-08 104 views
2

继5.1说明安装gitlab失败Gitlab设置,耙因为没有--global user.name

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

当我运行命令来测试安装,我得到一个错误“的Git配置用户?...否“

[email protected]:/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 "[email protected]" 
    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。 我可以放心地忽略这个警告,还是应该偏离说明并进行设置?

+0

这是一个编程问题?我相信这个问题更适合[SuperUser.com](http://superuser.com)。 – gertvdijk 2013-05-08 22:58:43

+0

哎呀,你是对的。 Stackoverflow不是这个问题的正确网站。 – spuder 2013-05-08 23:02:51

回答

2

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

+0

非常好。另外,感谢您更正“确保编辑两个文件以符合您的设置”一行。我无法弄清楚这两个文件是什么。 – spuder 2013-05-09 18:45:46