mirror of
https://github.com/nvbn/thefuck.git
synced 2025-11-19 00:05:56 +00:00
Remove now redundant checks in git_* rules
This commit is contained in:
@@ -4,8 +4,7 @@ from thefuck.shells import and_
|
||||
|
||||
@utils.git_support
|
||||
def match(command, settings):
|
||||
return ('git' in command.script
|
||||
and 'push' in command.script
|
||||
return ('push' in command.script
|
||||
and '! [rejected]' in command.stderr
|
||||
and 'failed to push some refs to' in command.stderr
|
||||
and 'Updates were rejected because the tip of your current branch is behind' in command.stderr)
|
||||
|
||||
Reference in New Issue
Block a user