git_flag_after_filename: Handle new error message
See https://github.com/git/git/commit/2a5aa826eec2eec64b4065f599ee7fb613a871ba
This commit is contained in:
@@ -2,11 +2,12 @@ import re
|
||||
from thefuck.specific.git import git_support
|
||||
|
||||
error_pattern = "fatal: bad flag '(.*?)' used after filename"
|
||||
error_pattern2 = "fatal: option '(.*?)' must come before non-option arguments"
|
||||
|
||||
|
||||
@git_support
|
||||
def match(command):
|
||||
return re.search(error_pattern, command.output)
|
||||
return re.search(error_pattern, command.output) or re.search(error_pattern2, command.output)
|
||||
|
||||
|
||||
@git_support
|
||||
|
||||
Reference in New Issue
Block a user