]> source.dussan.org Git - jgit.git/commit
Use NullOutputStream not DisabledOutputStream in UploadPack 91/13091/1
authorShawn Pearce <spearce@spearce.org>
Thu, 23 May 2013 20:07:03 +0000 (13:07 -0700)
committerShawn Pearce <spearce@spearce.org>
Thu, 23 May 2013 20:07:03 +0000 (13:07 -0700)
commit557471da2eee6752ad4305a883843bcdc8d66536
treea08f5b2f796db6d3560ff5f64036aae8c3e33f06
parent6e896ba66ba095b97a89a622d43f05ce9ad501e7
Use NullOutputStream not DisabledOutputStream in UploadPack

The stream should not throw IllegalStateException if it is off.
Flush the stream after the hook runs, in case any messages need
to be sent ahead of the pack.

Change-Id: I21c7a0258ab1308406d226293fa0e7da69b4f57b
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java