500 error on clicking "Get Patch" of Merge Request without source code
Created by: kirantpatil
GitLab Version: 2.9.0 4afb7b7c
Steps to Reproduce:
- Login to http://demo.gitlabhq.com
- Go to the page http://demo.gitlabhq.com/rails/merge_requests/87
- Click on "Get Patch" button
Expected output:
- Some meaningful information saying that "This MR does not contain the source code" or something better or
- Do not allow the MR to be created without source code
Actual output:
500 We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly.