Browse Source

pgm: Fix missing braces in Rm command

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

3
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Rm.java

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

Loading…
Cancel
Save