1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-19 00:58:56 +00:00

much better to check for 'push' in command.script_parts than anywhere in command.script

This commit is contained in:
David 2018-01-03 22:42:37 +00:00
parent f0c6893eaa
commit 1aa41f2003

View File

@ -5,7 +5,7 @@ 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_parts
and 'set-upstream' in command.output) and 'set-upstream' in command.output)