diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-21 23:47:13 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-21 23:47:13 +0100 |
commit | 88d60bf51a1c07d20bcf5f7be0ea29202dc1d9dc (patch) | |
tree | 9c37c61835f9b00ffcb5de9bbe9a371f29002791 | |
parent | c6bd13922f71df6c2146025b15ed757f118afc04 (diff) | |
download | jgit-88d60bf51a1c07d20bcf5f7be0ea29202dc1d9dc.tar.gz jgit-88d60bf51a1c07d20bcf5f7be0ea29202dc1d9dc.zip |
pgm: Fix missing braces in Status.run()
Change-Id: Ie30df8ed3d9a1e676f130214a173b622eaf67c6f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java index 039384db7d..dfc8a9436f 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java @@ -93,9 +93,11 @@ class Status extends TextBuiltin { protected void run() { try (Git git = new Git(db)) { StatusCommand statusCommand = git.status(); - if (filterPaths != null && filterPaths.size() > 0) - for (String path : filterPaths) + if (filterPaths != null && filterPaths.size() > 0) { + for (String path : filterPaths) { statusCommand.addPath(path); + } + } org.eclipse.jgit.api.Status status = statusCommand.call(); printStatus(status); } catch (GitAPIException | NoWorkTreeException | IOException e) { |