#1126860 please consider shipping sudoers snippet to preserve GIT environment variables

#1126860#5
Date:
2026-02-02 19:16:04 UTC
From:
To:
Hi,

Debian's default /etc/sudoers contains the following:

# While you shouldn't normally run git as root, you need to with etckeeper
#Defaults:%sudo env_keep += "GIT_AUTHOR_* GIT_COMMITTER_*"

Please consider shipping /etc/sudoers.d/etckeeper_env_keep containing
those lines. If grep uses other environment variables that are harmless
to pass up to a process with elevated privileges, feel free to add those
as well. That would enable sudo to simplify its default configuration.

Greetings
Marc