[英]Can't push to GitLab
昨晚我刚刚在Ubuntu Server上完成了GitLab的设置,但是看来我什么都没用。 我对Git极为陌生,所以我真的不知道我在这里做什么。
这是我尝试推送时来自SourceTree的输出:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack (475 bytes)
remote: GitLab: API is not accessible[K
Pushing to http://git.ghostlyco.de/revxx14/new-site.git
To http://git.ghostlyco.de/revxx14/new-site.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://git.ghostlyco.de/revxx14/new-site.git'
Completed with errors, see above.
不知道这意味着什么。 我能够很好地拉东西,所以我很困惑。
这是我运行sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
时的输出sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
:
http://git.ghostlyco.de/snippets/1
对于此安装,我唯一能想到的就是与众不同之处是我无法运行此命令: echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf
echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf
因为Ubuntu 12.04 LTS x86随附的Redis版本不支持unixsocketperm
。 不知道这是否可能导致此问题。
git remote -v
输出:
origin http://git.ghostlyco.de/revxx14/new-site.git (fetch)
origin http://git.ghostlyco.de/revxx14/new-site.git (push)
我想通了,我忘了在config.yml中设置gitlab_url。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.