Skip to content

Commit

Permalink
t1300: test "git config --get-all" more thoroughly
Browse files Browse the repository at this point in the history
We check that we can "--get-all" a multi-valued variable,
but we do not actually confirm that the output is sensible.
Doing so reveals that it works fine, but this will help us
ensure we do not have regressions in the next few patches,
which will touch this area.

Signed-off-by: Jeff King <peff@peff.net>
  • Loading branch information
Jeff King committed Oct 24, 2012
1 parent 65ff530 commit cb20b69
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions t/t1300-repo-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,13 @@ test_expect_success 'ambiguous get' '
test_must_fail git config --get nextsection.nonewline
'

test_expect_success 'get multivar' '
git config --get-all nextsection.nonewline
test_expect_success 'multi-valued get-all returns all' '
cat >expect <<-\EOF &&
wow
wow2 for me
EOF
git config --get-all nextsection.nonewline >actual &&
test_cmp expect actual
'

cat > expect << EOF
Expand Down

0 comments on commit cb20b69

Please sign in to comment.