mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-28 13:38:38 +00:00
9 lines
249 B
Python
9 lines
249 B
Python
def match(command, settings):
|
|
return ('git' in command.script
|
|
and 'push' in command.script
|
|
and 'set-upstream' in command.stderr)
|
|
|
|
|
|
def get_new_command(command, settings):
|
|
return command.stderr.split('\n')[-3].strip()
|