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

Re: [Opinion gathering] Git remote whitelist/blacklist

From
Aaron Schrab <aaron@schrab.com>
Date
May 24, 2016, 22:24 UTC
Message-ID
<20160524222451.GA23162@pug>
In-Reply-To
<vpq37p74nu1.fsf@anie.imag.fr>
At 14:55 +0200 24 May 2016, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
Show 6 quoted lines
>So, when trying a forbidden push, Git would deny it and the only way to
>force the push would be to remove the blacklist from the config, right?
>
>Probably the sanest way to go. I thought about adding a "git push
>--force-even-if-in-blacklist" or so, but I don't think the feature
>deserves one specific option (hence add some noise in `git push -h`).

It might make sense to bypass the blacklist checking if the existing --no-verify is used. In the past I've used a pre-push hook to implement a similar method of preventing accidental pushes, and found that to be a good way to skip the checking when I wanted to override the check for a specific push. The builtin blacklist checking could be seen as another type of verification. The downside to that would be that if the blacklist was used along with a pre-push hook for different types of checks users would likely only be able to see the error message from one of them; but that could also apply to a pre-push hook that implements different types of checks and short circuits at the first failure.

Previous: Jeff King
Message 15 of 15 in “[Opinion gathering] Git remote whitelist/blacklist”
  1. Francois BeutinMay 20, 2016
  2. Randall S. BeckerMay 20, 2016
  3. Francois BeutinMay 23, 2016
  4. Francois BeutinMay 24, 2016
  5. Lars SchneiderMay 24, 2016
  6. Matthieu MoyMay 24, 2016
  7. Junio C HamanoMay 24, 2016
  8. Randall S. BeckerMay 24, 2016
  9. Junio C HamanoMay 24, 2016
  10. Lars SchneiderMay 24, 2016
  11. Randall S. BeckerMay 24, 2016
  12. Lars SchneiderMay 24, 2016
  13. Matthieu MoyMay 24, 2016
  14. Jeff KingMay 25, 2016
  15. Aaron SchrabMay 24, 2016

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.