pgm: Fix missing braces in Rm command

Change-Id: I5ad2f02516917bbd02aa0eb4fb6b05d4b06dc670
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-01-21 23:39:32 +01:00
parent ed0d6e69f9
commit 9ef393c747
1 changed files with 2 additions and 1 deletions

View 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);