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

Re: [RFC/PATCH] push: deny policy to prevent pushes to unwanted remotes.

From
AQAntoine Queru <antoine.queru@ensimag.grenoble-inp.fr>
Date
Jun 20, 2016, 22:25 UTC
Message-ID
<1599012395.707458.1466461517473.JavaMail.zimbra@ensimag.grenoble-inp.fr>
In-Reply-To
<3899461F-44B4-407F-ACCE-793E65486554@gmail.com>
Show 14 quoted lines
> 
> >> ...
> >> 
> > 
> > Hello Rémi, thanks you for your input ! I'll make the appropriate changes
> > and send a new version as soon as i can !
> 
> Hi Antoine,
> 
> do you have an updated version already or is this the one I should look at?
> http://article.gmane.org/gmane.comp.version-control.git/296445
> 
> Thanks,
> Lars

Hello Lars ! I'm actually in holidays, but I will try to send a new version by the end of the week, it's nearly done. The code has been refactored with what Matthieu and Remi told, so don't bother to read the last version.

However, in the last version, if we want to deny an website, including all schemes, we can blacklist the url without the scheme. For example, "pushBlacklist = github.com". By doing so, this remote is not an url anymore, and it can't be differenced with a local relative path. It's a problem because these two have a different treatement. The choice we made to solve this is to force the user to put the scheme "file://" before any local relative path. What do you think ?

Antoine
Previous: Lars SchneiderNext: Matthieu Moy
Message 5 of 10 in “push: deny policy to prevent pushes to unwanted remotes.”
  1. push: deny policy to prevent pushes to unwanted remotes.Antoine Queru, Jun 4, 2016
  2. Remi Galan AlfonsoJun 6, 2016
  3. Antoine QueruJun 6, 2016
  4. Lars SchneiderJun 15, 2016
  5. Antoine QueruJun 20, 2016
  6. Matthieu MoyJun 21, 2016
  7. Lars SchneiderJun 21, 2016
  8. Matthieu MoyJun 6, 2016
  9. Junio C HamanoJun 6, 2016
  10. Matthieu MoyJun 6, 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.