mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-13 22:28:33 +00:00
Merge ad2c00fcaa4a4c34cc6396044f38754817895407 into 72ac9650f944746fca2b5a48c031579c205b730f
This commit is contained in:
commit
b5d50b0ff8
@ -1,7 +1,7 @@
|
||||
def match(command, settings):
|
||||
return ('git' in command.script
|
||||
and 'push' in command.script
|
||||
and 'set-upstream' in command.stderr)
|
||||
is_git = ('git' in command.script and 'push' in command.script) or \
|
||||
'gp' in command.script
|
||||
return (is_git and 'set-upstream' in command.stderr)
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
|
Loading…
x
Reference in New Issue
Block a user