#N/A: Stop changing Command inside rules

This commit is contained in:
Vladimir Iakovlev
2016-10-08 12:18:33 +02:00
parent 4d714994a3
commit 5b535077bf
9 changed files with 29 additions and 22 deletions
+4 -3
View File
@@ -10,6 +10,7 @@ def match(command):
@git_support
def get_new_command(command):
index = command.script_parts.index('rm') + 1
command.script_parts.insert(index, '-r')
return u' '.join(command.script_parts)
command_parts = command.script_parts[:]
index = command_parts.index('rm') + 1
command_parts.insert(index, '-r')
return u' '.join(command_parts)