Fix 500 Error When Creating Issue For Project With No Commits
requested to merge kyrofa/gitlab-ce:hotfix/153/500_error_when_creating_issue_for_project_with_no_commits into 6-7-stable
This merge request fixes issue #153 (closed), where trying to create an issue for a project with no commits results in a 500 error. This was done by:
- Checking that a commit exists before attempting to load its sha
- Handling the exception thrown by Rugged when attempting to load a nil SHA