]> source.dussan.org Git - jgit.git/commit
Add support for pre-push hooks 18/59318/3
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 30 Jun 2015 14:43:20 +0000 (16:43 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 2 Nov 2015 21:19:49 +0000 (22:19 +0100)
commitedc4daf2e823354a3e6fbb8251ec173da961c4b5
tree2800a49051161e974e035aa4e01cc67ca9cdbaf7
parent67a77d402aa4bab609cb639fee9d18f42aed1d59
Add support for pre-push hooks

When the file <git-dir>/hooks/pre-push exists make sure that is is
executing during a push. The pre-push hook runs during git push, after
the remote refs have been updated but before any objects have been
transferred.

Change-Id: Ibbb58ee3227742d1a2f913134ce11e7a135c7f4c
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/hooks/Hooks.java
org.eclipse.jgit/src/org/eclipse/jgit/hooks/PrePushHook.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java