Bug 1019646: Check if specified git ref is valid during deploy
Merge pull request #3916 from ironcladlou/bz/1020365

Merged by openshift-bot