3

Whenever I press tab after entering git stash drop, I get the following error message (outputted thrice in a row):

_arguments:comparguments:325: invalid argument: _git-notes
_git-stash:88: command not found: (-q --quiet)-q[suppress all output]

The actual stash deletion still does work, but it's a hassle to have to list my stashes first before choosing.

I've tried uninstalling and reinstalling git, but to no avail.

If it helps, I upgraded recently to Ubuntu 20.04 from 19.10 and I don't recall this bug ever appearing in the previous OS version.

psdi
  • 31
  • 5
  • Looks like a mismatch between the autocomplete script for your Git, your Git itself, and/or your version of bash. Installing a new Git doesn't always update the autocompletion scripts. [This](https://stackoverflow.com/q/14970728/1256452) is for OSX, not Ubuntu, but is worth seeing. – torek May 14 '20 at 22:29
  • Have you found a solution to this? I'm facing the same issue. – SergioLeone May 21 '20 at 13:13
  • @SergioLeone I googled git autocompletion and came upon [this tutorial](https://medium.com/@oliverspryn/adding-git-completion-to-zsh-60f3b0e7ffbc) for adding autocompletion to zsh, the shell I use. While it does fix the error, whenever I press tab after `git stash drop stash@{`, it only adds another curly brace, which results to `git stash drop stash@{{`. – psdi May 22 '20 at 16:52
  • Doesn't look like a solution to me. The rest of the autocomplete functions work fine, only `git stash drop` is the problematic one (And actaully I've also started experiencing this on Ubuntu 20.04) I've opened an issue with omzsh for this, let's see what they say. – SergioLeone May 23 '20 at 14:14
  • Any updates on this issue? – Paul Jul 20 '20 at 00:56
  • 1
    Yes, the [issue](https://github.com/ohmyzsh/ohmyzsh/issues/8956) was closed because it is not a problem of ohmyzsh. – minterior Jul 28 '20 at 16:32
  • 1
    It seems that has been fixed by zsh-5.8-44-g754658aff (according to https://www.zsh.org/mla/workers/2020/msg00915.html) – minterior Jul 28 '20 at 16:58

0 Answers0