git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: a problem with git describe

From
Philip Oakley <philipoakley@iee.email>
Date
Apr 23, 2022, 11:27 UTC
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:
Show 13 quoted lines
> 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

Previous: Guy MaurelNext: Junio C Hamano
Message 2 of 23 in “a problem with git describe”
  1. Guy MaurelApr 23, 2022
  2. Philip OakleyApr 23, 2022
  3. Junio C HamanoApr 23, 2022
  4. Junio C HamanoApr 23, 2022
  5. Carlo Marcelo Arenas BelónApr 25, 2022
  6. SZEDER GáborApr 25, 2022
  7. Carlo Marcelo Arenas BelónApr 25, 2022
  8. Junio C HamanoApr 25, 2022
  9. Carlo Marcelo Arenas BelónApr 25, 2022
  10. Carlo Marcelo Arenas BelónApr 25, 2022
  11. Guy MaurelApr 25, 2022
  12. Johannes SchindelinApr 26, 2022
  13. rsbecker@nexbridge.comApr 26, 2022
  14. Carlo ArenasApr 26, 2022
  15. Junio C HamanoApr 26, 2022
  16. Carlo ArenasApr 26, 2022
  17. Johannes SchindelinApr 26, 2022
  18. Junio C HamanoApr 26, 2022
  19. Taylor BlauApr 26, 2022
  20. Johannes SchindelinApr 26, 2022
  21. Taylor BlauApr 26, 2022
  22. Johannes SchindelinApr 26, 2022
  23. Junio C HamanoApr 26, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.