Files
thefuck/thefuck/rules/git_remote_delete.py
T
Pablo Santiago Blum de Aguiar af1a88b271 #701: Do not require git in the script
@git_support already does that
2017-10-08 21:15:28 -03:00

14 lines
239 B
Python

import re
from thefuck.specific.git import git_support
@git_support
def match(command):
return "remote delete" in command.script
@git_support
def get_new_command(command):
return re.sub(r"delete", "remove", command.script, 1)