mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-18 16:50:42 +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:
parent
959d20df78
commit
4985f75d74
@ -1,5 +1,4 @@
|
|||||||
from thefuck import utils
|
from thefuck import utils, shells
|
||||||
from thefuck.shells import and_
|
|
||||||
from thefuck.utils import replace_argument
|
from thefuck.utils import replace_argument
|
||||||
|
|
||||||
|
|
||||||
@ -13,5 +12,5 @@ def match(command, settings):
|
|||||||
|
|
||||||
@utils.git_support
|
@utils.git_support
|
||||||
def get_new_command(command, settings):
|
def get_new_command(command, settings):
|
||||||
return and_(replace_argument(command.script, 'push', 'pull'),
|
return shells.and_(replace_argument(command.script, 'push', 'pull'),
|
||||||
command.script)
|
command.script)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user