Changed the test for the branch name to allow for the case where a commit ID is used instead of a branch name.
Changed the test for the branch name to allow for the case where a
commit ID is used instead of a branch name.

trisk/mistify-os,mistifyio/mistify-os,trisk/mistify-os,mistifyio/mistify-os,mistifyio/mistify-os,trisk/mistify-os