setup_git_env: convert die("BUG") to BUG()
[gitweb.git] / t / t1300-repo-config.sh
index afcca0d52c377cfabd6463f060d1b183937ba9de..867704a64280eb1905fcc2e88ac9b4a337584785 100755 (executable)
@@ -1539,4 +1539,10 @@ test_expect_success !MINGW '--show-origin blob ref' '
        test_cmp expect output
 '
 
+test_expect_failure '--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