Merge request do not work wnen a group and a repositary have the same name.
Created by: koorchik
Summary
Merge request do not work wnen a group and a repositary have the same name.
Steps to reproduce:
- There was a repositary named "xjs".
- I've created a group named "xjs".
- Then moved the repositary to the group.
- Create merge request in "xjs" repo.
Observed behavior:
After that the gitlab started to return 500 error while automerge check.
Expected behavior
Automerge check should work.
Relevant logs:
Grit::InvalidGitRepositoryError (/home/git/gitlab-satellites/xjs/xjs):
lib/gitlab/satellite/satellite.rb:77:in `new'
lib/gitlab/satellite/satellite.rb:77:in `repo'
lib/gitlab/satellite/action.rb:24:in `block (2 levels) in in_locked_and_timed_satellite'
lib/gitlab/satellite/satellite.rb:61:in `block (2 levels) in lock'
lib/gitlab/satellite/satellite.rb:60:in `chdir'
lib/gitlab/satellite/satellite.rb:60:in `block in lock'
lib/gitlab/satellite/satellite.rb:57:in `open'
lib/gitlab/satellite/satellite.rb:57:in `lock'
lib/gitlab/satellite/action.rb:23:in `block in in_locked_and_timed_satellite'
lib/gitlab/satellite/action.rb:22:in `in_locked_and_timed_satellite'
lib/gitlab/satellite/merge_action.rb:14:in `can_be_merged?'
app/models/merge_request.rb:111:in `check_if_can_be_merged'
app/controllers/merge_requests_controller.rb:73:in `automerge_check'
Renaming repo to something that differs from the group name fixed the issue (only sattelites regeneration was required)