<s> import re <EOL> from thefuck . utils import get_all_matched_commands , replace_command <EOL> from thefuck . specific . git import git_support <EOL> @ git_support <EOL> def match ( command ) : <EOL> return ( "<STR_LIT>" in command . stderr <EOL> and '<STR_LIT>' in command . stderr ) <EOL> @ git_support <EOL> def get_new_command ( command ) : <EOL> broken_cmd = re . findall ( r"<STR_LIT>" , <EOL> command . stderr ) [ <NUM_LIT:0> ] <EOL> matched = get_all_matched_commands ( command . stderr ) <EOL> return replace_command ( command , broken_cmd , matched ) </s>
