Re: About refs refs/heads/+...
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 21, 2014, 18:40 UTC
- Message-ID
- <xmqqy4q0c0df.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CACsJy8B8wVKAoqaKJxuyWbyDbFEofwctyfQoU=A0S_yUMc8bgA@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 6 quoted lines
> I accidentally created a branch whose name starts with "+". > Everything went ok until I pushed it because "+" is interpreted as > forced refspec (e.g. "git push somewhere +wip"). Using full ref names > would avoid ambiguity. The corner case of this is where the branch > name is simply "+". Then refspec "+:" will be interpreted completely > different from what the user wants.
Using full ref names does not avoid ambiguity in that case? What is a push refspec with an empty right-hand-side supposed to do in the first place anyway?