]> source.dussan.org Git - jgit.git/commit
Fix push option initalization on HTTP 86/79886/2
authorStefan Beller <sbeller@google.com>
Fri, 26 Aug 2016 21:10:06 +0000 (14:10 -0700)
committerShawn Pearce <spearce@spearce.org>
Fri, 26 Aug 2016 21:52:07 +0000 (14:52 -0700)
commit36cf4fe580a2b771331e0b9bcaea5505b3b7e27a
treef4ad0966839105859fb8057b91efe3197c20ca77
parent3b64c09ac48ef30b0ce5867a01cbbd62a5434df9
Fix push option initalization on HTTP

Initialize pushOptions when we decide to use them, instead of when we
advertise them.

In the case of HTTP the advertisement is in a different network
request, hence in a different instance of the BaseReceivePack.

Change-Id: I094c60942e04de82cb6d8433c9cd43a46ffae332
Signed-off-by: Stefan Beller <sbeller@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushOptionsTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java