Bug 1019646: Check if specified git ref is valid during deploy