mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00: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:
parent
959d20df78
commit
4985f75d74
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user