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

Re: git update index question

From
LHLars Hjemli <hjemli@gmail.com>
Date
Oct 17, 2007, 13:30 UTC
Message-ID
<8c5c35580710170630y6ab3a6aehcbbcf9b7feb1bb6d@mail.gmail.com>
In-Reply-To
<47160706.2000706@filmaura.com>
On 10/17/07, Gonzalo Garramuno <gga@filmaura.com> wrote:
> I had incorrectly done a chmod a+x on the pre-commit hook when all my
> previous commits had not been using it, so I think the pre-commit was
> actually catching not my new fix but what was already in the repository.

That sounds wrong: the (default) pre-commit hook only verifies the _new_ content, not the content in HEAD. Is there any chance your .git/hooks/pre-commit script has been tampered with?

-- larsh

Previous: Gonzalo Garramuno
Message 4 of 4 in “git update index question”
  1. Gonzalo GarramunoOct 17, 2007
  2. Lars HjemliOct 17, 2007
  3. Gonzalo GarramunoOct 17, 2007
  4. Lars HjemliOct 17, 2007

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.