diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-02 12:15:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-02 13:09:05 -0800 |
commit | 59d9442f28ca8874db93aca961225489328444ac (patch) | |
tree | d3e6370ba7dd30e6e15b048b366347c8148c8b7c /t/t5515/refs.br-config-explicit-octopus | |
parent | Sync with Git 2.35.1 (diff) | |
download | tgif-59d9442f28ca8874db93aca961225489328444ac.tar.xz |
completion tests: re-source git-completion.bash in a subshell
Change tests of git-completion.bash that re-source it to do so inside
a subshell. Re-sourcing it will clobber variables it sets, and in the
case of the "GIT_COMPLETION_SHOW_ALL=1" test added in
ca2d62b7879 (parse-options: don't complete option aliases by default,
2021-07-16) change the behavior of the completion persistently.
Aside from the addition of "(" and ")" on new lines this is an
indentation-only change, only the "(" and ")" lines are changed under
"git diff -w".
So let's change that test, and for good measure do the same for the
three tests that precede it, which were added in
8b0eaa41f23 (completion: clear cached --options when sourcing the
completion script, 2018-03-22). The may not be wrong, but doing this
establishes a more reliable pattern for future tests, which might use
these as a template to copy.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-config-explicit-octopus')
0 files changed, 0 insertions, 0 deletions