[CD] [000] Fix failing spec

A spec failed for me after a fresh clone. I fixed the failure by making
the call to `git branch` overridable.