Port git-refresh-from-remote to Ruby, keep the old sh version.