Can not do merge request on GitLab

孤街浪徒 提交于 2019-12-10 21:37:14

问题


After updating GitLab from 6.2 to 7.1. I can not do merge requests. It tells me that there isn't anything to merge (but ofcourse there are).

System info:

System information
System:     
Current User:   git
Using RVM:  no
Ruby Version:   2.1.2p95
Gem Version:    2.2.2
Bundler Version:1.6.5
Rake Version:   10.3.2
Sidekiq Version:2.17.0

GitLab information
Version:    7.1.1
Revision:   facfec4
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        <not showing>
HTTP Clone URL: <not showing>
SSH Clone URL:  <not showing>
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.9.6
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git

回答1:


It was a problem with repository/.git/config file. Nothing GitLab related.




回答2:


Please check the log file githost.log

and you will understand it.

solution:

Just do this:

git checkout master

If that hasn't fixed it, this will:

git checkout -b temp

git branch -f master temp

git checkout master

Reference: How can I reconcile detached HEAD with master/origin?



来源:https://stackoverflow.com/questions/25133398/can-not-do-merge-request-on-gitlab

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!