1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-11-18 15:56:00 +00:00

⚠️ Remove settings param from rules match, get_new_command and side_effect

This commit is contained in:
nvbn
2015-09-07 13:00:29 +03:00
parent 382eb8b86c
commit df4d2cc88d
154 changed files with 535 additions and 465 deletions

View File

@@ -4,7 +4,7 @@ from thefuck.specific.git import git_support
@git_support
def match(command, settings):
def match(command):
return ('push' in command.script
and '! [rejected]' in command.stderr
and 'failed to push some refs to' in command.stderr
@@ -12,6 +12,6 @@ def match(command, settings):
@git_support
def get_new_command(command, settings):
def get_new_command(command):
return shells.and_(replace_argument(command.script, 'push', 'pull'),
command.script)