Merge branch 'master' of github.com:nvbn/thefuck
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
from thefuck.utils import replace_argument
|
||||
import re
|
||||
|
||||
from thefuck.specific.git import git_support
|
||||
|
||||
|
||||
@git_support
|
||||
def match(command):
|
||||
return "git remote delete" in command.script
|
||||
return "remote delete" in command.script
|
||||
|
||||
|
||||
@git_support
|
||||
def get_new_command(command):
|
||||
return replace_argument(command.script, "delete", "remove")
|
||||
return re.sub(r"delete", "remove", command.script, 1)
|
||||
|
||||
Reference in New Issue
Block a user