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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user