mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
#529: Minor style changes
This commit is contained in:
parent
837ca73f50
commit
c93b547624
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user