You can have a branch that does not support tags located in a repository
that has the newest format. This fixes T3963.
I've duplicated the check that the upgrade is actually done
in test_needs_upgrade, since the test would pass fine with an already
upgraded repo, albeit with a lower coverage.