]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4205-log-pretty-formats.sh
pretty: update tests to use `test_config`
authorBrian Lyles <brianmlyles@gmail.com>
Mon, 25 Mar 2024 07:25:12 +0000 (02:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 19:19:45 +0000 (12:19 -0700)
commit2cd134f2c538a9cb7b0946ace6004489eba9535f
treec677ad3962a666dd9e16b7bc7218aeeb68e60aba
parent0d1bd1dfb37ef25e1911777c94129fc769ffec38
pretty: update tests to use `test_config`

These tests use raw `git config` calls, which is an older style that can
cause config to bleed between tests if not manually unset. `test_config`
ensures that config is unset at the end of each test automatically.

`test_config` is chosen over `git -c` since `test_config` still ends up
calling `git config` which seems slightly more realistic to how pretty
formats would be defined normally.

Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Brian Lyles <brianmlyles@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4205-log-pretty-formats.sh