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

Is there a hook that runs on git reset?

From
AHAndré Hänsel <andre@webkr.de>
Date
Jun 22, 2013, 18:52 UTC
Message-ID
<0b6a01ce6f79$b62de4b0$2289ae10$@webkr.de>

I am using a script that runs as post-checkout and post-merge hook to ensure some permissions on the working copy files.

Neither of these hooks is run on git reset, so after a git reset --hard the permissions are lost because apparently the files were created freshly. I guess I would have expected post-checkout to run.

Is there a hook that runs on git reset that I can use to run my permissions script?

Message 1 of 1 in “Is there a hook that runs on git reset?”
  1. André HänselJun 22, 2013

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.