From: Philip Oakley Date: Sat, 23 Apr 2022 11:27:40 GMT Subject: Re: a problem with git describe Message-ID: <3d762060-b817-0246-c4a2-8eb35096cb7f@iee.email> In-Reply-To: <4ef9287b-6260-9538-7c89-cffb611520ee@maurel.de> Hi Guy, On 23/04/2022 10:12, Guy Maurel wrote: > Hello! > > I am using git version 2.25.1 > > 6-8 weeks ago I don't get any problem. > Now I get : > guy@renard ~/Software/uncrustify $ sudo git describe --always --dirty > [sudo] password for guy: > fatal: unsafe repository ('/home/guy/Software/uncrustify' is owned by > someone else) > > What is to do? > There was a security warning noted in recent maintenance releases, see https://lore.kernel.org/git/20220414003839.1616296-2-gitster@pobox.com/ where users could be fooled to access unsafe repositories that they didn't own. You may have received a maintenance update that makes this check now the default. Could you check what `git version` reports?  There has also been added an escape hatch of allowing "*" for the permitted safe directories. but do check the updated manuals, and the git mailing list archive (update the search in the above link). -- Philip