diff --git a/tests/rules/test_git_log.py b/tests/rules/test_git_log.py index ff2f4915..a555aae6 100644 --- a/tests/rules/test_git_log.py +++ b/tests/rules/test_git_log.py @@ -22,4 +22,4 @@ def test_not_match(script): ('git lock', 'git log'), ('git lock --help', 'git log --help')]) def test_get_new_command(script, output): - assert get_new_command(Command(script, '')) == output \ No newline at end of file + assert get_new_command(Command(script, '')) == output diff --git a/thefuck/rules/git_log.py b/thefuck/rules/git_log.py index 2655222d..5288f365 100644 --- a/thefuck/rules/git_log.py +++ b/thefuck/rules/git_log.py @@ -1,10 +1,11 @@ -from thefuck.shells import shell from thefuck.specific.git import git_support + @git_support def match(command): return 'git: \'lock\' is not a git command.' in command.output + @git_support def get_new_command(command): return command.script.replace('lock', 'log', 1)