t/t4202-log.sh: add newline at end of file
[gitweb.git] / t / t1303-wacky-config.sh
index 99985dcd79f12d680c51e8f64d61c47a70b43f36..f98f4c51796e6f7a7181568a134e21ecd9dc2c4f 100755 (executable)
@@ -11,7 +11,7 @@ setup() {
 check() {
        echo "$2" >expected
        git config --get "$1" >actual
-       git diff actual expected
+       test_cmp actual expected
 }
 
 test_expect_success 'modify same key' '
@@ -34,4 +34,10 @@ test_expect_success 'add key in different section' '
        check section2.key bar
 '
 
+SECTION="test.q\"s\\sq'sp e.key"
+test_expect_success 'make sure git-config escapes section names properly' '
+       git config "$SECTION" bar &&
+       check "$SECTION" bar
+'
+
 test_done