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

Re: [cosmetic bug?] needlessly(?) executable files

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Feb 23, 2015, 08:21 UTC
Message-ID
<1424679663.30155.30.camel@kaarsemaker.net>
In-Reply-To
<xmqqr3thwzur.fsf@gitster.dls.corp.google.com>
On zo, 2015-02-22 at 10:44 -0800, Junio C Hamano wrote:
Show 19 quoted lines
> Christoph Anton Mitterer <calestyo@scientia.net> writes:
> 
> > Just a question about files like:
> > .git/config
> > .git/hooks/*.sample
> >
> > Is there any reason that these are created executable? Especially
> the
> > config file?
> 
> In a new repository I just did "git init", I see this:
> 
>     $ rm -fr stupid
>     $ umask 0027
>     $ git init stupid
>     $ ls -l stupid/.git/config | sed -e 's/ .*//'
>     -rw-r-----
> 
> So no, config is not created executable.

It used to be for a brief period in history, between daa22c6f8d (2.1.0) and 1f32ecf (2.2.2).

-- 
Dennis Kaarsemaker
http://www.kaarsemaker.net
Previous: Junio C HamanoNext: Christoph Anton Mitterer
Message 3 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.