Use git config remote.origin.url to detect the origin

Otherwise, it panics on `review pending`.