repo-config: give value_ a sane default so regexec won't segfault
[git.git] / t / t1300-repo-config.sh
index 207dd3d..ab4dd5c 100755 (executable)
@@ -247,5 +247,13 @@ EOF
 
 test_expect_success 'hierarchical section value' 'cmp .git/config expect'
 
+cat > .git/config << EOF
+[novalue]
+       variable
+EOF
+
+test_expect_success 'get variable with no value' \
+       'git-repo-config --get novalue.variable ^$'
+
 test_done