t1300: test "git config --get-all" more thoroughly
[gitweb.git] / t / t1300-repo-config.sh
index ed75c5caffaea7c84d937d6be4b038d846f28775..51dd5b58bf63a286a9b0d6832be27350a37d232c 100755 (executable)
@@ -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