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

git pre-push hook to restrict master branch push !!!

From
JBJ. Bakshi <joydeep.bakshi@infoservices.in>
Date
Jun 11, 2012, 11:18 UTC
Message-ID
<20120611164851.0e4db9f0@shiva.selfip.org>
Hello list,

I have a central server where git repos are located and based on http base push/pull. authentication is done by a text based password file, generated by htpasswd.

I am searching for a server side hook (pre-push) which can prevent all push to master, except few users found at that password file generated by htpasswd. Is there any such hook available ? Some suggest to use gitolite, but it also based on the hooks to do the same.

Thanks
Next: Sitaram Chamarty
Message 1 of 4 in “git pre-push hook to restrict master branch push !!!”
  1. J. BakshiJun 11, 2012
  2. Sitaram ChamartyJun 11, 2012
  3. J. BakshiJun 11, 2012
  4. J. BakshiJun 20, 2012

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.