branch: clean up commit flags after merge-filter walk
[gitweb.git] / t / t1308-config-set.sh
index 9cc678d90b4e4f753c7586dea385ef2ad3431db8..ea0bce2dc64b6fe3cac3e00f48b7a17a341af647 100755 (executable)
@@ -119,6 +119,16 @@ test_expect_success 'find integer value for a key' '
        check_config get_int lamb.chop 65
 '
 
+test_expect_success 'find string value for a key' '
+       check_config get_string case.baz hask &&
+       check_config expect_code 1 get_string case.ba "Value not found for \"case.ba\""
+'
+
+test_expect_success 'check line error when NULL string is queried' '
+       test_expect_code 128 test-config get_string case.foo 2>result &&
+       test_i18ngrep "fatal: .*case\.foo.*\.git/config.*line 7" result
+'
+
 test_expect_success 'find integer if value is non parse-able' '
        check_config expect_code 128 get_int lamb.head
 '