mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 06:34:09 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user