Ensure network up before git check