Package org.eclipse.jgit.transport

Examples of org.eclipse.jgit.transport.PreReceiveHook


    gs.setReceivePackFactory(new DefaultReceivePackFactory() {
      public ReceivePack create(HttpServletRequest req, Repository db)
          throws ServiceNotEnabledException,
          ServiceNotAuthorizedException {
        ReceivePack recv = super.create(req, db);
        recv.setPreReceiveHook(new PreReceiveHook() {
          public void onPreReceive(ReceivePack rp,
              Collection<ReceiveCommand> commands) {
            rp.sendMessage("message line 1");
            rp.sendError("no soup for you!");
            rp.sendMessage("come back next year!");
View Full Code Here


    gs.setReceivePackFactory(new DefaultReceivePackFactory() {
      public ReceivePack create(HttpServletRequest req, Repository db)
          throws ServiceNotEnabledException,
          ServiceNotAuthorizedException {
        ReceivePack recv = super.create(req, db);
        recv.setPreReceiveHook(new PreReceiveHook() {
          public void onPreReceive(ReceivePack rp,
              Collection<ReceiveCommand> commands) {
            rp.sendMessage("message line 1");
            rp.sendError("no soup for you!");
            rp.sendMessage("come back next year!");
View Full Code Here

                return new ReceivePack( db ) {{
                    final ClusterService clusterService = clusterMap.get( db );
                    final JGitFileSystem fs = repoIndex.get( db );
                    final Map<String, RevCommit> oldTreeRefs = new HashMap<String, RevCommit>();

                    setPreReceiveHook( new PreReceiveHook() {
                        @Override
                        public void onPreReceive( final ReceivePack rp,
                                                  final Collection<ReceiveCommand> commands ) {
                            if ( clusterService != null ) {
                                clusterService.lock();
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.transport.PreReceiveHook

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.