From e74592605e8ff1816684f62f0d816dd0ec04ffef Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 21 Jan 2019 23:52:57 +0100 Subject: pgm: Fix missing braces in UploadPack.run() Change-Id: I923af9b4ce62d5098828f4322a2a508bf3927bbd Signed-off-by: Matthias Sohn --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/UploadPack.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.pgm') diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/UploadPack.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/UploadPack.java index 53041d6a52..c13830242e 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/UploadPack.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/UploadPack.java @@ -77,8 +77,9 @@ class UploadPack extends TextBuiltin { db = key.open(true /* must exist */); org.eclipse.jgit.transport.UploadPack up = new org.eclipse.jgit.transport.UploadPack( db); - if (0 <= timeout) + if (0 <= timeout) { up.setTimeout(timeout); + } up.upload(ins, outs, errs); } catch (RepositoryNotFoundException notFound) { throw die(MessageFormat.format(CLIText.get().notAGitRepository, -- cgit v1.2.3