Skip to main content


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:If I hit commit, only a "git staging" view is opened in eclipse
Next Topic:Selective Push or Pull ?
Goto Forum:
  


Current Time: Wed Apr 24 20:50:27 GMT 2024

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

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

Back to the top