fix when default_branch is nil in database, gitlab-ci integration
doesn't work because the parameter is "ref"=>"refs/heads/"