Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • master default
  • 7.0.0.202409031743-jpms
  • 7.0.0-jpms-1
4 results

jgit

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Shawn Pearce authored
    Any messages received on side band #2 that aren't scraped as a
    progress message into our ProgressMonitor are now forwarded to a
    buffer which is later included into the OperationResult object.
    Application callers can use this buffer to present the additional
    messages from the remote peer after the push or fetch operation
    has concluded.
    
    The smart push connections using the native send-pack/receive-pack
    protocol now request side-band-64k capability if it is available
    and forward any messages received through that channel onto this
    message buffer.  This makes hook messages available over smart HTTP,
    or even over SSH.
    
    The SSH transport was modified to redirect the remote command's
    stderr stream into the message buffer, interleaved with any data
    received over side band #2.  Due to buffering between these two
    different channels in the SSH channel mux itself the order of any
    writes between the two cannot be ensured, but it tries to stay close.
    
    The local fork transport was also modified to redirect the local
    receive-pack's stderr into the message buffer, rather than going to
    the invoking JVM's System.err.  This gives applications a chance
    to log the local error messages, rather than needing to redirect
    their JVM's stderr before startup.
    
    To keep things simple, the application has to wait for the entire
    operation to complete before it can see the messages.  This may
    be a downside if the user is trying to debug a remote hook that is
    blocking indefinitely, the user would need to abort the connection
    before they can inspect the message buffer in any sort of UI built
    on top of JGit.
    
    Change-Id: Ibc215f4569e63071da5b7e5c6674ce924ae39e11
    Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
    673b3984
    History
    Name Last commit Last update