Use a pointer comparison as opposed to isEqual.

For a branch to be equal it must belong to the exact same repository
object.