1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

Allow generic_shell to act while testing git_push_pull

Fix failing tests on shells that do not use && operator
This commit is contained in:
Pablo Santiago Blum de Aguiar 2015-07-25 23:25:34 -03:00
parent 959d20df78
commit 4985f75d74

View File

@ -1,5 +1,4 @@
from thefuck import utils
from thefuck.shells import and_
from thefuck import utils, shells
from thefuck.utils import replace_argument
@ -13,5 +12,5 @@ def match(command, settings):
@utils.git_support
def get_new_command(command, settings):
return and_(replace_argument(command.script, 'push', 'pull'),
command.script)
return shells.and_(replace_argument(command.script, 'push', 'pull'),
command.script)