[Gambas-user] gits new security feature "unsafe repository"

Bruce Steers bsteers4 at gmail.com
Tue Jul 12 12:06:49 CEST 2022


On Tue, 12 Jul 2022 at 11:01, Bruce Steers <bsteers4 at gmail.com> wrote:

>
>
> On Tue, 12 Jul 2022 at 10:56, Benoit Minisini <
> benoit.minisini at gambas-basic.org> wrote:
>
>> Le 12/07/2022 à 11:52, Bruce Steers a écrit :
>> > As of git 2.35.2 a new security feature means you have to add all your
>> > local git paths as safe paths.
>> > Or you now get this message...
>> > *
>> > *
>> > *fatal: unsafe repository
>> > ('/media/bonus/SSDiskspace/git/gambaslatestupdate' is owned by someone
>> else)
>> > To add an exception for this directory, call:
>> >
>> > git config --global --add safe.directory
>> > /media/bonus/SSDiskspace/git/gambaslatestupdate*
>> >
>> > This has happened to ALL my local folders and i've had to add them
>> manually.
>> > But this also stops Version Control working and no version control
>> > options show in the IDE unless you add the path first.
>> >
>> > Was thinking it'd be cool if the IDE detected this error and offered to
>> > run the command to add the path for you.
>> >
>> > Respects
>> > BruceS
>> >
>>
>> What's that stupid thing?
>>
>
> Annoying is what it is!
> It just happened one day after a git update :(
> https://github.blog/2022-04-12-git-security-vulnerability-announced/
>
> https://stackoverflow.com/questions/71901632/fatal-error-unsafe-repository-home-repon-is-owned-by-someone-else/71941707#71941707
>
>
You can use
git config --global --add safe.directory "*"
but that kinda bypasses the security.

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220712/b685c52b/attachment.htm>


More information about the User mailing list