gitlabhq/gitlabhq — pull request #4746 by caiwangqin (2013-08-09 08:38:37+00:00)
Title: fix when default_branch is nil in database, gitlab-ci integration doesn't work because the parameter is "ref"=>"refs/heads/"

the gitlab-ci integration api require parameter "ref"=>"refs/heads/master", but for new project the default_branch default to null in database unless user save project settings, then the gitlab-ci api got parameter "ref"=>"refs/heads/" can not receives build from gitlab successful.