2013-05-13 150 views
3

我一直在试图合并两个分支与GitLab但我不断收到此消息。我检查了没有分支受到保护。合并请求不工作GitLab

您可以自动接受此请求。如果您仍想手动执行此操作,请在此合并请求按钮禁用后单击此处查看说明

试图bundle exec rake gitlab:app:enable_automerge RAILS_ENV=production

错误:

无法找到的Gemfile

作为一个总的小白来GitLab和Ubuntu我有很难理解这一点。

githost.log

May 13, 2013 09:59 -> ERROR -> Command failed [1]: /opt/gitorious-2.4.12-1/git/bin/git --git-dir=/opt/gitlab-5.1.0-2/apps/gitlab/gitlab-satellites/testairtdl/.git push origin master 

remote: hooks/update:10: undefined method `require_relative' for main:Object (NoMethodError)[K 

remote: error: hook declined to update refs/heads/master[K 

To /opt/gitlab-5.1.0-2/apps/gitlab/repositories/testairtdl.git 

! [remote rejected] master -> master (hook declined) 

error: failed to push some refs to '/opt/gitlab-5.1.0-2/apps/gitlab/repositories/testairtdl.git' 

回答

1

gitlab-shell/issues/12,则必须在执行gitlab时使用了错误的红宝石版本。

即使安装了ruby 1.9.3,也可以使用ruby might not be correct over ssh

这同一个问题页面包括:

ssh [email protected] will try calling whatever is in command= in authenticated_keys without any login/interactive shells, therefore skiping any .*profile/rc files and, as a result, not having rvm loaded and using system ruby which is 1.8.7.

如前所述in this answer,请确保您的.bashrc包括:

# Load RVM into a shell session *as a function* 
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 

# If not running interactively, don't do anything 
[ -z "$PS1" ] && return 
+0

我没有安装rvm。 :( – 2013-05-13 06:42:25

+0

@AhmedDurrani没关系,我的答案主要是:错误的ruby版本必须执行 – VonC 2013-05-13 06:43:15

+0

我已经删除了ruby1.8并安装了ruby1.9.3仍然出现这个错误当我安装了GitLab它带有ruby1.8我应该怎么做? – 2013-05-13 06:45:05

1

如果您从GitLab文件夹运行rake命令,您将无法找到找不到的Gemfile

+0

这对我有用。 – mak 2015-03-30 10:20:25