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

[RFC] git gui doesn't call post-checkout hook on checkout or clone

From
Jens Lehmann <jens.lehmann@web.de>
Date
Mar 22, 2009, 15:49 UTC
Message-ID
<49C65DF1.8030608@web.de>

When checking out or cloning via git gui, the post-checkout hook is not called. This is a bit unexpected ...

The reason is that git gui uses git read-tree with the -u option and not git checkout and git clone. I changed git read-tree to call the post-checkout hook when called with -u and it seems to solve the problem. I would make a patch for that if you want.

But is this the right way to do this? Seems like we could surprise some users of git read-tree with this change in behaviour.

(I hope i cc'ed the right people this time ;-)
Jens
Next: Jeff King
Message 1 of 3 in “[RFC] git gui doesn't call post-checkout hook on checkout or clone”
  1. Jens LehmannMar 22, 2009
  2. Jeff KingMar 22, 2009
  3. Shawn O. PearceMar 23, 2009

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.