Fixing 'Repository changed its 'Codename' value' errors during Debian upgrades

Debian 13 (Trixie) was released yesterday. 🎉

As I refer to the stable repositories in my sources list, the following error is now shown since their release information changed:

# apt-get update
Hit:1 https://security.debian.org/debian-security bookworm-security InRelease
Hit:2 https://download.docker.com/linux/debian bookworm InRelease
Get:3 http://mirror.iway.ch/debian stable InRelease [138 kB]
Get:4 http://mirror.iway.ch/debian stable-updates InRelease [47.1 kB]
Hit:5 https://deb.goaccess.io bookworm InRelease
Reading package lists... Done
N: Repository 'http://mirror.iway.ch/debian stable InRelease' changed its 'Version' value from '12.11' to '13.0'
E: Repository 'http://mirror.iway.ch/debian stable InRelease' changed its 'Codename' value from 'bookworm' to 'trixie'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://mirror.iway.ch/debian stable-updates InRelease' changed its 'Version' value from '12-updates' to '13-updates'
E: Repository 'http://mirror.iway.ch/debian stable-updates InRelease' changed its 'Codename' value from 'bookworm-updates' to 'trixie-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

To fix this message (and enable upgrading to the new release!), I use the following command:

# apt-get --allow-releaseinfo-change update
...
N: Repository 'http://mirror.iway.ch/debian stable InRelease' changed its 'Version' value from '12.11' to '13.0'
N: Repository 'http://mirror.iway.ch/debian stable InRelease' changed its 'Codename' value from 'bookworm' to 'trixie'
N: Repository 'http://mirror.iway.ch/debian stable-updates InRelease' changed its 'Version' value from '12-updates' to '13-updates'
N: Repository 'http://mirror.iway.ch/debian stable-updates InRelease' changed its 'Codename' value from 'bookworm-updates' to 'trixie-updates'

Afterwards I run the usual apt-get dist-upgrade to upgrade the system to the new Debian version.