From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bakshi" Subject: git pre-push hook to restrict master branch push !!! Date: Mon, 11 Jun 2012 16:48:51 +0530 Message-ID: <20120611164851.0e4db9f0@shiva.selfip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon Jun 11 13:19:09 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Se2eJ-0003dX-Iy for gcvg-git-2@plane.gmane.org; Mon, 11 Jun 2012 13:19:07 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754041Ab2FKLTA (ORCPT ); Mon, 11 Jun 2012 07:19:00 -0400 Received: from static.88-198-19-49.clients.your-server.de ([88.198.19.49]:51058 "EHLO zimbra.infoservices.in" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753619Ab2FKLS7 (ORCPT ); Mon, 11 Jun 2012 07:18:59 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.infoservices.in (Postfix) with ESMTP id 3D745DA463D for ; Mon, 11 Jun 2012 13:18:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.infoservices.in Received: from zimbra.infoservices.in ([127.0.0.1]) by localhost (zimbra.infoservices.in [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qiIHtLCnYgCy for ; Mon, 11 Jun 2012 13:18:57 +0200 (CEST) Received: from shiva.selfip.org (unknown [122.176.30.116]) by zimbra.infoservices.in (Postfix) with ESMTPSA id 87DF0DA463A for ; Mon, 11 Jun 2012 13:18:56 +0200 (CEST) X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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