updated to handle removing git