diff --git a/thefuck/rules/git_push_pull.py b/thefuck/rules/git_push_pull.py index d55b519..785e74f 100644 --- a/thefuck/rules/git_push_pull.py +++ b/thefuck/rules/git_push_pull.py @@ -5,10 +5,13 @@ from thefuck.specific.git import git_support @git_support def match(command): - 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) or 'Updates were rejected because the remote contains work that you do' in command.stderr)) + 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 or + 'Updates were rejected because the remote ' + 'contains work that you do' in command.stderr)) @git_support