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

[cosmetic bug?] needlessly(?) executable files

From
Christoph Anton Mitterer <calestyo@scientia.net>
Date
Feb 21, 2015, 17:48 UTC
Message-ID
<1424540917.15539.24.camel@scientia.net>
Hey.

Just a question about files like: .git/config .git/hooks/*.sample

Is there any reason that these are created executable? Especially the config file? I know the hooks are already disabled by being named .sample, but having them executable just increases the chance that one accidentally fires them up manually.

Cheers, Chris.

Next: Junio C Hamano
Message 1 of 5 in “[cosmetic bug?] needlessly(?) executable files”
  1. Christoph Anton MittererFeb 21, 2015
  2. Junio C HamanoFeb 22, 2015
  3. Dennis KaarsemakerFeb 23, 2015
  4. Christoph Anton MittererFeb 23, 2015
  5. Junio C HamanoFeb 23, 2015

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.