Files
thefuck/thefuck/rules/git_push.py
T
2015-07-21 15:35:39 +02:00

13 lines
275 B
Python

from thefuck import utils
@utils.git_support
def match(command, settings):
return ('push' in command.script
and 'set-upstream' in command.stderr)
@utils.git_support
def get_new_command(command, settings):
return command.stderr.split('\n')[-3].strip()