Files
thefuck/thefuck/rules/git_remote_seturl_add.py
T
2017-10-08 16:27:23 +02:00

13 lines
316 B
Python

from thefuck.utils import replace_argument
from thefuck.specific.git import git_support
@git_support
def match(command):
return ('set-url' in command.script
and 'fatal: No such remote' in command.output)
def get_new_command(command):
return replace_argument(command.script, 'set-url', 'add')