diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2017-02-03 03:48:16 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-03 22:18:40 -0800 |
commit | 3bcb41f976e767376d496cf210d82cf39dad0e62 (patch) | |
tree | 086fabffe63b6b4fb8fdc3804b71aab11aa1f29c /compat/precompose_utf8.h | |
parent | completion: ensure that the repository path given on the command line exists (diff) | |
download | tgif-3bcb41f976e767376d496cf210d82cf39dad0e62.tar.xz |
completion: fix most spots not respecting 'git --git-dir=<path>'
The completion script already respects the path to the repository
specified on the command line most of the time, here we add the
necessary '--git-dir=$(__gitdir)' options to most of the places where
git was executed without it. The exceptions where said option is not
added are the git invocations:
- in __git_refs() which are non-trivial and will be the subject of
the following patch,
- getting the list of git commands, merge strategies and archive
formats, because these are independent from the repository and
thus don't need it, and
- the 'git rev-parse --git-dir' in __gitdir() itself.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/precompose_utf8.h')
0 files changed, 0 insertions, 0 deletions