This check fails for tags and branches, and is made redundant by the checks git itself will do when fetching the repo.