2013-05-13 73 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