mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 14:48:49 +00:00
much better to check for 'push' in command.script_parts than anywhere in command.script
This commit is contained in:
parent
f0c6893eaa
commit
1aa41f2003
@ -5,7 +5,7 @@ from thefuck.specific.git import git_support
|
||||
|
||||
@git_support
|
||||
def match(command):
|
||||
return ('push' in command.script
|
||||
return ('push' in command.script_parts
|
||||
and 'set-upstream' in command.output)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user