summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-01-21 23:47:13 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2019-01-21 23:47:13 +0100
commit88d60bf51a1c07d20bcf5f7be0ea29202dc1d9dc (patch)
tree9c37c61835f9b00ffcb5de9bbe9a371f29002791
parentc6bd13922f71df6c2146025b15ed757f118afc04 (diff)
downloadjgit-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.java6
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) {