Revert "Made the build process support git tags as well."

This reverts commit de0f95d0bc3f8b6240deab228f8dc59506789ac5.
Prune branches wnen fetching