Upgrade git when possible