completion: use __git when calling --list-cmds
authorTodd Zullinger <tmz@pobox.com>
Wed, 20 Mar 2019 18:03:29 +0000 (14:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2019 02:55:34 +0000 (11:55 +0900)
As we made --list-cmds read the local configuration file in an
earlier step, the completion.commands variable respects repo-level
configuration. Use __git which ensures that the proper repo config
is consulted if the command line contains 'git -C /some/other/repo'.

Suggested-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found