Prune invalid remote branches when fetching from git server