Re: bash completion with 2.18.0/maint: unknown options
- From
- Дилян Палаузов <dilyan.palauzov@aegee.org>
- Date
- Jul 14, 2018, 21:38 UTC
- Message-ID
- <05bba1ef0a5da7662cc8c09f90bacc9059eeac05.camel@aegee.org>
- In-Reply-To
- <20180714212433.GB6430@sigill.intra.peff.net>
Hello Jeff,
thanks for your answer. You are right: I have forgotten to run 'make install'. After doing so the completion works again.
type git reports /usr/local/bin/git
Regards Дилян
On Sat, 2018-07-14 at 17:24 -0400, Jeff King wrote:
Show 22 quoted lines
> On Sat, Jul 14, 2018 at 02:46:17PM +0000, Дилян Палаузов wrote: > > > After upgrading to 2.18 the completion does not work: > > > > typing "git de<TAB>" prints > > my@host:~$ git deUnknown option: --list-cmds=list- > > mainporcelain,others,nohelpers,alias,list-complete,config > > usage: git [--version] [--help] [-C <path>] [-c name=value] > > [...] > > In v2.18, the completions are generated programatically using new > options added to the git binary. The completion and the git binary > you're using have to be upgraded in lockstep (this has always been the > case, though I think this is probably the case where not doing so would > have the biggest effect). > > Are you sure the git binary you're running matches the completion? > > You mentioned that you're sourcing the completion from a clone in > /git/git. What does `type git` report? > > -Peff