We already retry inside the extended_urllib.py module
Better support for detached head