diff.c: color moved lines differently, plain mode
[gitweb.git] / t / t1300-repo-config.sh
index f664bfc67148a738be4a0ec58fc71b88344022b7..a37ef0422212eafdae4b4c0fae9e28d4a183117f 100755 (executable)
@@ -1545,4 +1545,10 @@ test_expect_success !MINGW '--show-origin blob ref' '
        test_cmp expect output
 '
 
+test_expect_success '--local requires a repo' '
+       # we expect 128 to ensure that we do not simply
+       # fail to find anything and return code "1"
+       test_expect_code 128 nongit git config --local foo.bar
+'
+
 test_done