git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: akos tajti <akos.tajti@gmail.com>
To: git@vger.kernel.org
Subject: Git smart http: parsing commit messages in git-receive-pack
Date: Sat, 6 May 2017 14:30:35 +0200	[thread overview]
Message-ID: <7DA6022F-02F0-41AC-ABAB-64565E81481F@gmail.com> (raw)

Dear All,

we implemented a java servlet around the git-http-backend. This servlet intercepts the requests sent by the git client when pushing. One thing I want to achieve is parsing the commit messages in the pre push phase (request param service==git-receive-pack) and after checking if the commit messages contain a given string reject/accept the request. The problem is that I couldn't find a way of parsing the commit messages in git-receive-pack (I can do this in the post  push phase but in that case I cannot reject the push because the changes are already on the server). Is there a way of getting the commit messages before they're actually on the server so that I can reject the push?

Thanks in advance,
Ákos Tajti


             reply	other threads:[~2017-05-06 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-06 12:30 akos tajti [this message]
2017-05-06 19:14 ` Git smart http: parsing commit messages in git-receive-pack Bryan Turner
2017-05-08  2:08   ` Junio C Hamano

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7DA6022F-02F0-41AC-ABAB-64565E81481F@gmail.com \
    --to=akos.tajti@gmail.com \
    --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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).