Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » validate in pre-receive(How to access new file's content for validation?)
icon5.gif  validate in pre-receive [message #1740669] Wed, 17 August 2016 05:22
Hiran Chaudhuri is currently offline Hiran ChaudhuriFriend
Messages: 1
Registered: August 2016
Junior Member
I'd like to create a hook in GitBlit that can validate the new files before they go into the repository. That means it has to be a pre-receive hook written in Groovy so that it can fail the push in case the validation fails.

How do I access the file's contents? Somehow I have not found any example for this.
Previous Topic:JGit on Windows
Next Topic:Selective Push or Pull ?
Goto Forum:

Current Time: Thu Aug 17 02:09:54 GMT 2017

Powered by FUDForum. Page generated in 0.02331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software