2013-05-08 68 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

相關問題