Refine cases when remote.origin.url is set