Browse Source

pgm: Fix missing braces in UploadPack.run()

Change-Id: I923af9b4ce62d5098828f4322a2a508bf3927bbd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.4
Matthias Sohn 6 years ago
parent
commit
e74592605e
  1. 3
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/UploadPack.java

3
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,

Loading…
Cancel
Save