1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-28 13:38:38 +00:00
thefuck/thefuck/rules/git_push.py
2015-04-08 21:08:35 +02:00

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()