mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-15 15:20:42 +01: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
|
@git_support
|
||||||
def match(command):
|
def match(command):
|
||||||
return ('push' in command.script
|
return ('push' in command.script and
|
||||||
and '! [rejected]' in command.stderr
|
'! [rejected]' in command.stderr and
|
||||||
and 'failed to push some refs to' in command.stderr
|
'failed to push some refs to' in command.stderr and
|
||||||
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))
|
('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
|
@git_support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user