Web merge request fails if target branch name == directory/file in repository
Created by: kndonlee
Error Summary
Once a merge request has been placed to merge branch X into master, pressing the "Accept Merge Request" appears to works for a moment and throws the user back to the same page with the "Accept Merge Request" button lightly greened out and unclickable.
Error Message
The githost.log shows the following error:
August 29, 2013 20:28 -> ERROR -> Command failed [1]: /usr/bin/git --git-dir=/data/git/gitlab-satellites/inits/carnfx/.git push origin master
error: src refspec master does not match any.
error: failed to push some refs to '/data/git/repositories/inits/carnfx.git'
Other information
- running gitlab 6.0
- merge requests from branches other than master e.g. branch X to branch Y work as expected.
- merge requests from master to other branches also work as expected.
- due to partition space limitations, /home/git was moved to /data/git (all other functionality works as expected, but not sure if this may be a contributor to this problem)
- sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production returns cleanly