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

'git worktree add' does not fire post-checkout hook

From
Gumbel, Matthew K <matthew.k.gumbel@intel.com>
Date
Dec 6, 2017, 21:00 UTC
Message-ID
<DA0A42D68346B1469147552440A64503C60832DB@ORSMSX105.amr.corp.intel.com>
Hello all,
I've noticed that when I run 'git worktree add /path/to/new/tree', the post-checkout hook does not fire, even though the worktree manpage explicitly states that "worktree add" will, "Create <path> and checkout <branch> into it."
Is this the intended behavior? Seems like maybe a bug, but I'm not sure.

Thanks Matt

Next: Eric Sunshine
Message 1 of 3 in “'git worktree add' does not fire post-checkout hook”
  1. Gumbel, Matthew KDec 6, 2017
  2. Eric SunshineDec 6, 2017
  3. Eric SunshineDec 7, 2017

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.