From: Junio C Hamano Date: Mon, 25 Apr 2022 06:39:27 GMT Subject: Re: a problem with git describe Message-ID: In-Reply-To: <20220425020108.5agdq6bdg6umrtbt@carlos-mbp.lan> Carlo Marcelo Arenas Belón writes: > At that point, though you might as well excempt root from this check But "root" or any higher-valued account is what needs this kind of protection the most, no? The protection is *not* about people knowingly accessing their own repository via "root", but those who are in a directory without being aware of its repository-ness. You prepare /var/tmp/.git/ and let others do things that they would do in /var/tmp/ throw-away directories normally and get affected by what you leave in /var/tmp/.git/config file. If "root" is among these "others", that sounds like you caught a bigger fish X-<.