Bug 1033572

Use git ref default logic for both 'git push' and RESTful deployments
Merge pull request #4226 from ncdc/bz1033572-default-git-ref

Merged by openshift-bot