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

Re: [PATCH] Add support in sample hook script for denying annotated tags.

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 31, 2010, 20:24 UTC
Message-ID
<20101031202433.GB21240@burratino>
In-Reply-To
<201010311457.17817.bss@iguanasuicide.net>
Hi,
Boyd Stephen Smith Jr. wrote:
Show 11 quoted lines
> Signed-off-by: "Boyd Stephen Smith Jr." <bss@iguanasuicide.net>
> ---
>  templates/hooks--update.sample |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> In one project I'm in we are using a centralized Git repository that many 
> developers have access to.  As such, we want to prevent tags from being 
> created by push operations and have them created by the administrators.
> 
> This is a modification to the sample update hook to allow this to simply be 
> a configuration option.
This kind of justification belongs above the "---", I think.
No opinion on the functionality itself.  Just:
Show 9 quoted lines
> --- a/templates/hooks--update.sample
> +++ b/templates/hooks--update.sample
> @@ -7,6 +7,9 @@
>  #
>  # Config
>  # ------
> +# hooks.allowannotated
> +#   This boolean sets whether annotated tags will be allowed into the
> +#   repository.  By default they won't be.

hooks.denyannotated (defaulting to false) would be more consistent with hooks.denycreatebranch, no?

Or maybe hooks.denycreatetag --- a situation in which unannotated tags should be allowed but annotated denied seems hard to imagine.

Hope that helps, Jonathan

Previous: Boyd Stephen Smith Jr.Next: Boyd Stephen Smith Jr.
Message 2 of 3 in “Add support in sample hook script for denying annotated tags.”
  1. Add support in sample hook script for denying annotated tags.Boyd Stephen Smith Jr., Oct 31, 2010
  2. Jonathan NiederOct 31, 2010
  3. Boyd Stephen Smith Jr.Nov 1, 2010

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.