From: "J. Bakshi" <joydeep.bakshi@infoservices.in>
To: git@vger.kernel.org
Subject: git pre-push hook to restrict master branch push !!!
Date: Mon, 11 Jun 2012 16:48:51 +0530 [thread overview]
Message-ID: <20120611164851.0e4db9f0@shiva.selfip.org> (raw)
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 reply other threads:[~2012-06-11 11:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 11:18 J. Bakshi [this message]
2012-06-11 12:10 ` git pre-push hook to restrict master branch push !!! Sitaram Chamarty
2012-06-11 12:17 ` J. Bakshi
2012-06-20 12:39 ` J. Bakshi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120611164851.0e4db9f0@shiva.selfip.org \
--to=joydeep.bakshi@infoservices.in \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).