Fixed the check to make sure to exclude the HEAD symbolic refs when updating