mirror of
https://github.com/nvbn/thefuck.git
synced 2025-11-15 22:36:01 +00:00
13 lines
282 B
Python
13 lines
282 B
Python
from thefuck.specific.git import git_support
|
|
|
|
|
|
@git_support
|
|
def match(command, settings):
|
|
return ('push' in command.script
|
|
and 'set-upstream' in command.stderr)
|
|
|
|
|
|
@git_support
|
|
def get_new_command(command, settings):
|
|
return command.stderr.split('\n')[-3].strip()
|