git - Merge Request not working GitLab -
i have been trying merge 2 branches gitlab
keep getting message. checked no branch protected.
you can accept request automatically. if still want manually - click here instructions after merge request button disables.
tried bundle exec rake gitlab:app:enable_automerge rails_env=production
error:
could not locate gemfile
being total noob gitlab , ubuntu having hard time understanding this.
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' main:object (nomethoderror)[k remote: error: hook declined update refs/heads/master[k /opt/gitlab-5.1.0-2/apps/gitlab/repositories/testairtdl.git ! [remote rejected] master -> master (hook declined) error: failed push refs '/opt/gitlab-5.1.0-2/apps/gitlab/repositories/testairtdl.git'
from gitlab-shell/issues/12, must use wrong ruby version when executing gitlab.
even if ruby 1.9.3 installed, ruby might not correct on ssh.
that same issue page includes:
ssh git@blah
try calling whatever incommand=
in authenticated_keys without login/interactive shells, therefore skiping.*profile/rc
files and, result, not havingrvm
loaded , using system ruby 1.8.7.
as mentioned in answer, make sure include in .bashrc
:
# load rvm shell session *as function* [[ -s "$home/.rvm/scripts/rvm" ]] && source "$home/.rvm/scripts/rvm"
before
# if not running interactively, don't [ -z "$ps1" ] && return
Comments
Post a Comment