1
0
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:
mcarton
2015-07-21 15:35:39 +02:00
parent 903abff77e
commit 98a9fb3d7d
12 changed files with 13 additions and 23 deletions

View File

@@ -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)