git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git smart http: parsing commit messages in git-receive-pack
@ 2017-05-06 12:30 akos tajti
  2017-05-06 19:14 ` Bryan Turner
  0 siblings, 1 reply; 3+ messages in thread
From: akos tajti @ 2017-05-06 12:30 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-08  2:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-06 12:30 Git smart http: parsing commit messages in git-receive-pack akos tajti
2017-05-06 19:14 ` Bryan Turner
2017-05-08  2:08   ` Junio C Hamano

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).