The branch probe's command: rev-parse --verify --quiet refs/heads/<branch>, which exits 0 when the ref exists and 1 when not.
rev-parse --verify --quiet refs/heads/<branch>
The branch probe's command:
rev-parse --verify --quiet refs/heads/<branch>, which exits 0 when the ref exists and 1 when not.