Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Bug in "git stash drop" completion: "_arguments:comparguments:325: invalid argument: _git-notes"



Hi,

just ran into zsh 5.8 throwing these errors upon "git stash drop" tab
completion:

% git stash drop stash@\{
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
% git stash drop stash@\{
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
% git stash drop stash@\{
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes

The amount of warnings seems to become more the more often I tried it.

"git stash show -p" tab completion in the same git repository though
works as expected:

% git stash show -p stash@\{
completing stash
stash@{0}: WIP on debian: f1e2af0ca Update debian/changelog (4 months ago)
stash@{1}: WIP on debian: 14d262602 d/upstream/signing-key.asc: Add the 5.7 RM's signing key. (1 year, 5 months ago)
stash@{2}: WIP on debian: 06946d431 debian/TODO.md: Mention that switching zsh-dev to arch:all is non-trivial. (1 year, 6 months ago)

Not sure if relevant: I first successfully tab-completed "git stash
show -p stash@\{<Tab>" once, then ran into this issue, and then
successfully did tab-complete "git stash show -p stash@\{<Tab>" a
second time.

Versions:

* zsh 5.8 as of Debian unstable package 5.8-4.
* git 2.27.0 as of Debian unstable package 1:2.27.0-1.

		Kind regards, Axel
-- 
PGP: 2FF9CD59612616B5      /~\  Plain Text Ribbon Campaign, http://arc.pasp.de/
Mail: abe@xxxxxxxxxxxxxxx  \ /  Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@xxxxxxxxx  X
https://axel.beckert.ch/   / \  I love long mails: https://email.is-not-s.ms/



Messages sorted by: Reverse Date, Date, Thread, Author