]> source.dussan.org Git - jgit.git/commitdiff
pgm: Fix missing braces in Rm command 11/135511/1
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 21 Jan 2019 22:39:32 +0000 (23:39 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 21 Jan 2019 22:39:32 +0000 (23:39 +0100)
Change-Id: I5ad2f02516917bbd02aa0eb4fb6b05d4b06dc670
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Rm.java

index aa0bb4a775db1fb9021eb44918787460ae90246d..4b66462b86e798f245646d0eb23b2d7242ec1185 100644 (file)
@@ -65,8 +65,9 @@ class Rm extends TextBuiltin {
        protected void run() {
                try (Git git = new Git(db)) {
                        RmCommand command = git.rm();
-                       for (String p : paths)
+                       for (String p : paths) {
                                command.addFilepattern(p);
+                       }
                        command.call();
                } catch (GitAPIException e) {
                        throw die(e.getMessage(), e);