]> source.dussan.org Git - jgit.git/commit
I/O redirection for the pre-push hook 52/196452/2
authorThomas Wolf <twolf@apache.org>
Thu, 20 Oct 2022 21:25:38 +0000 (23:25 +0200)
committerThomas Wolf <twolf@apache.org>
Thu, 20 Oct 2022 21:34:56 +0000 (23:34 +0200)
commit71af0d6a5c4417a9c9c6523d4aa811579d8c867f
tree0dfdb780d9738ffea2442465614b7b12a012f5c9
parent96236fdcb5502f3071317b9cf2bf88019d7fb309
I/O redirection for the pre-push hook

Fix and complete the implementation of calling the pre-push hook.
Add the missing error stream redirect, and add the missing setters
in Transport and in PushCommand. In Transport, delay setting up a
PrePushHook such that it happens only on a push. Previously, the
hook was set up also for fetches.

Bug: 549246
Change-Id: I64a576dfc6b139426f05d9ea6654027ab805734e
Signed-off-by: Thomas Wolf <twolf@apache.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java