On Monday, August 26, 2013 08:17:45 PM Joey Hess wrote: > Thomas Koch wrote: > > Should etckeeper have some checks build in that save stupid users like > > me? > > AFAICS, sudo prevents variables like the ones vcsh sets from getting > through to the root shell. So unless you run vcsh as root (which seems > asking for foot shooting), this should not happen easily.
I did su and then aptitude. As an addition to etckeeper I think one could add: if $(git rev-parse --show-toplevel) != "/etc" exit 42 and if $(readlink -f $(git rev-parse --git-dir)) != "/etc/.git" exit 43 I'm happy when I can make you happy! Thomas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org