diff --git a/thefuck/rules/git_branch_delete.py b/thefuck/rules/git_branch_delete.py index ad465af..f4bf218 100644 --- a/thefuck/rules/git_branch_delete.py +++ b/thefuck/rules/git_branch_delete.py @@ -1,7 +1,12 @@ +from thefuck import utils + + +@utils.git_support def match(command, settings): return ('git branch -d' in command.script and 'If you are sure you want to delete it' in command.stderr) +@utils.git_support def get_new_command(command, settings): return command.script.replace('-d', '-D')