From 6dd8f386e17d4a0b37514ce0f4a45d47397507c5 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 30 Jun 2008 23:04:02 -0400 Subject: [PATCH] Correctly name the stderr redirection thread for local transport When we open git-receive-pack for the local transport case we still create a thread to redirect any error messages to the System.err console. In this case the thread should be named after the command we are running. Signed-off-by: Shawn O. Pearce Signed-off-by: Robin Rosenberg --- org.spearce.jgit/src/org/spearce/jgit/transport/TransportLocal.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/TransportLocal.java b/org.spearce.jgit/src/org/spearce/jgit/transport/TransportLocal.java index 761d1b86..b1122675 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/transport/TransportLocal.java +++ b/org.spearce.jgit/src/org/spearce/jgit/transport/TransportLocal.java @@ -96,7 +96,7 @@ class TransportLocal extends PackTransport { try { final Process proc = Runtime.getRuntime().exec( new String[] { cmd, "." }, null, remoteGitDir); - new StreamRewritingThread(proc.getErrorStream()).start(); + new StreamRewritingThread(cmd, proc.getErrorStream()).start(); return proc; } catch (IOException err) { throw new TransportException(uri, err.getMessage(), err); @@ -158,8 +158,8 @@ class TransportLocal extends PackTransport { class StreamRewritingThread extends Thread { private final InputStream in; - StreamRewritingThread(final InputStream in) { - super("JGit " + getOptionUploadPack() + " Errors"); + StreamRewritingThread(final String cmd, final InputStream in) { + super("JGit " + cmd + " Errors"); this.in = in; } -- 2.11.4.GIT