aboutsummaryrefslogtreecommitdiff
path: root/t/t1300-config.sh
diff options
context:
space:
mode:
authorDerrick Stolee <stolee@gmail.com>2026-02-23 12:26:46 +0000
committerJunio C Hamano <gitster@pobox.com>2026-02-23 13:23:40 -0800
commitd744923fefb294c835d18883bac62f85ff55fc9f (patch)
tree22150fbf4cee2b23808396af08e2e66a69eb2c24 /t/t1300-config.sh
parent1ef1f9d53a1607dd8fd38e0dbae67e405c3b3563 (diff)
downloadgit-d744923fefb294c835d18883bac62f85ff55fc9f.tar.xz
config: format int64s gently
Move the logic for formatting int64 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/t1300-config.sh')
-rwxr-xr-xt/t1300-config.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index dc744c0bae..05a812fd6d 100755
--- a/t/t1300-config.sh
+++ b/t/t1300-config.sh
@@ -2515,7 +2515,9 @@ test_expect_success 'list --type=int shows only canonicalizable int values' '
section.big=1048576
EOF
- test_must_fail git config ${mode_prefix}list --type=int
+ git config ${mode_prefix}list --type=int >actual 2>err &&
+ test_cmp expect actual &&
+ test_must_be_empty err
'
test_expect_success 'list --type=bool shows only canonicalizable bool values' '