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

Adding custom hooks to a bare repository.

From
Thomas Adam <thomas.adam22@gmail.com>
Date
Jul 28, 2008, 11:04 UTC
Message-ID
<18071eea0807280404w3365748cjcd11f536bf5d27eb@mail.gmail.com>
Hello all,

I'm trying to add in "post-merge" as a valid hook file to an already created --bare repository. In adding it to the correct place and setting the correct permissions on it (the repository is a shared one), it doesn't seem to be pulled down with the other hook files already present when doing a "git clone".

Any ideas why?

Indeed, I also, as a test, added this post-merge hook to a repository and created a --bare repository from that - thinking that perhaps the hook file had to present at the time of creating a new repository, but even then it wasn't copied over to the bare repository.

What am I doing wrong?
Thanks in advance,
-- Thomas Adam
Next: Johannes Schindelin
Message 1 of 5 in “Adding custom hooks to a bare repository.”
  1. Thomas AdamJul 28, 2008
  2. Johannes SchindelinJul 28, 2008
  3. Thomas AdamJul 28, 2008
  4. Johannes SchindelinJul 28, 2008
  5. Thomas AdamJul 28, 2008

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.