#441: Remove shells methods wrappers

This commit is contained in:
nvbn
2016-01-29 13:09:40 +03:00
parent b5dc7aab6d
commit fe07fcaa62
34 changed files with 86 additions and 119 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
import re
from decorator import decorator
from ..utils import is_app
from ..shells import quote, split_command
from ..shells import shell
@decorator
@@ -23,7 +23,8 @@ def git_support(fn, command):
# 'commit' '--amend'
# which is surprising and does not allow to easily test for
# eg. 'git commit'
expansion = ' '.join(map(quote, split_command(search.group(2))))
expansion = ' '.join(shell.quote(part)
for part in shell.split_command(search.group(2)))
new_script = command.script.replace(alias, expansion)
command = command.update(script=new_script)