git_push: Handle branch names containing 'set-upstream' (#759)
This should fix https://github.com/nvbn/thefuck/issues/723 (IndexError when using bitbucket)
This commit is contained in:
committed by
Joseph Frazier
parent
7c858fadb3
commit
c205683a8d
@@ -6,7 +6,7 @@ from thefuck.specific.git import git_support
|
||||
@git_support
|
||||
def match(command):
|
||||
return ('push' in command.script_parts
|
||||
and 'set-upstream' in command.output)
|
||||
and 'git push --set-upstream' in command.output)
|
||||
|
||||
|
||||
def _get_upstream_option_index(command_parts):
|
||||
|
||||
Reference in New Issue
Block a user