diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-21 23:52:57 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-21 23:52:57 +0100 |
commit | e74592605e8ff1816684f62f0d816dd0ec04ffef (patch) | |
tree | 2c72068e8fae87d60d09980bd3198a1898522a80 /org.eclipse.jgit.pgm/src | |
parent | 9bf8a1bf14dc6334a6abd6d7cf980c50aa7eb111 (diff) | |
download | jgit-e74592605e8ff1816684f62f0d816dd0ec04ffef.tar.gz jgit-e74592605e8ff1816684f62f0d816dd0ec04ffef.zip |
pgm: Fix missing braces in UploadPack.run()
Change-Id: I923af9b4ce62d5098828f4322a2a508bf3927bbd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/UploadPack.java | 3 |
1 files changed, 2 insertions, 1 deletions
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, |