actually return the shas from the local/remote branches, rather than
a bool if they exist