summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-01-21 23:39:32 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2019-01-21 23:39:32 +0100
commit9ef393c7475248088cef3e0c3a173df889968077 (patch)
treebb209087e30ffc4dbeb7c60014e9e42966f24f11
parented0d6e69f990aa51d874760300b3536ace2dc697 (diff)
downloadjgit-9ef393c7475248088cef3e0c3a173df889968077.tar.gz
jgit-9ef393c7475248088cef3e0c3a173df889968077.zip
pgm: Fix missing braces in Rm command
Change-Id: I5ad2f02516917bbd02aa0eb4fb6b05d4b06dc670 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Rm.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Rm.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Rm.java
index aa0bb4a775..4b66462b86 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Rm.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Rm.java
@@ -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);