]> source.dussan.org Git - jgit.git/commit
[push] Call the pre-push hook later in the push process 89/190989/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 20 Feb 2022 17:10:24 +0000 (18:10 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 6 Mar 2022 16:30:01 +0000 (17:30 +0100)
commit90df7c123ecac9ae75a189b761a2599d5fba3565
treee764cb4fc8a013f8adfb272bc2f7c9c75079ee47
parent72ae234e79aca7f3f6a5e78e3c9c9ac6a127bba9
[push] Call the pre-push hook later in the push process

Call the pre-push hook only after having received the remote
advertisement and having determined rejections, like C git does.
Also similar to C git, don't pass rejected or up-to-date updates
to the pre-push hook.

Bug: 578852
Change-Id: I51d379ea7bd8234ec815f8f4a9fa325816f476cf
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PushProcess.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java