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:
David Hart
2018-01-06 22:44:03 +00:00
committed by Joseph Frazier
parent 7c858fadb3
commit c205683a8d
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -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):