#775326 git bash completion for 'git branch --set-upstrea-to=' deletes the option

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Moritz Lenz
Date:
2015-01-14 07:33:07 UTC
Severity:
normal
#775326#5
Date:
2015-01-14 07:31:36 UTC
From:
To:
Dear Maintainer,

I'm running bash, and I'm in a git repo on branch suggestion-cleanup, and type

 $ git branch --set-upstream-to=o

and then hit <tab> to get completions for origin/...

After I hit tab, the prompt is

 $ git branch origin/

Which means that the tab completion removed the '--set-upstream-to=' from my
prompt.

I expected the prompt to be

 $ git branch --set-upstream-to=origin/

This is clearly unintuitive, and hinders work with git more than it
helps.

I've verified that this is not just a display problem; the option is actually
gone.


*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***