diff options
| author | Derrick Stolee <stolee@gmail.com> | 2026-02-23 12:26:48 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-23 13:23:41 -0800 |
| commit | 5fb7bdcca98e63fedee22f16a34ab5fadbee54e0 (patch) | |
| tree | b82a5750496494d3cec4a7eaefbdb684711e29e2 /t | |
| parent | 53959a8ba22d80f78daa693dfc2f76fd3afe80e2 (diff) | |
| download | git-5fb7bdcca98e63fedee22f16a34ab5fadbee54e0.tar.xz | |
config: format bools or ints gently
Move the logic for formatting bool-or-int config values into a helper
method and use gentle parsing when needed.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t1300-config.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh index 568cfaa3c5..1fc8e788ee 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -2539,7 +2539,9 @@ test_expect_success 'list --type=bool-or-int shows only canonicalizable values' section.big=1048576 EOF - test_must_fail git config ${mode_prefix}list --type=bool-or-int + git config ${mode_prefix}list --type=bool-or-int >actual 2>err && + test_cmp expect actual && + test_must_be_empty err ' test_expect_success 'list --type=path shows only canonicalizable path values' ' |
