<s> from thefuck . shells import shell <EOL> from thefuck . specific . git import git_support <EOL> @ git_support <EOL> def match ( command ) : <EOL> return ( '<STR_LIT>' in command . script <EOL> and '<STR_LIT>' in command . stderr ) <EOL> @ git_support <EOL> def get_new_command ( command ) : <EOL> line = command . stderr . split ( '<STR_LIT:\n>' ) [ - <NUM_LIT:3> ] . strip ( ) <EOL> branch = line . split ( '<STR_LIT:U+0020>' ) [ - <NUM_LIT:1> ] <EOL> set_upstream = line . replace ( '<STR_LIT>' , '<STR_LIT>' ) . replace ( '<STR_LIT>' , branch ) <EOL> return shell . and_ ( set_upstream , command . script ) </s>
