Closed (fixed)
Project:
Version Control API -- Git backend
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
15 Jul 2018 at 23:41 UTC
Updated:
8 Aug 2018 at 05:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drummThis patch simplifies this to be a less-clever rm in a loop. It may not be efficient, but it doesn’t need to be. And it is more-readable code.
Comment #4
marvil07 commented@drumm, thanks for the report and the patch here.
You are right, the shell expansion is not working.
escapeshellarg()was sourrounding the generated string in quotes, including the parenthesis, and therefore invalidating the shell expansion.This can also be fixed by adding a bit more logic, but I agree with simplifying the code expanding it a little.
As mentioned in the last comment, it is easier to read after the changes, and the performance gain from possible change should not be considerable, so I added the change here to 7.x-1.x.