diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-05-29 05:34:45 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-29 05:34:45 +0200 |
commit | 220c6a70803d520a7cd19f9f2889650d54574470 (patch) | |
tree | 511bbcf9b63f7152729a716d8dbd049d2376ed29 /t/t1300-repo-config.sh | |
parent | Merge branch 'js/eol-on-ourselves' (diff) | |
parent | usage: add NORETURN to BUG() function definitions (diff) | |
download | git-220c6a70803d520a7cd19f9f2889650d54574470.tar.xz git-220c6a70803d520a7cd19f9f2889650d54574470.zip |
Merge branch 'jk/bug-to-abort'
Introduce the BUG() macro to improve die("BUG: ...").
* jk/bug-to-abort:
usage: add NORETURN to BUG() function definitions
config: complain about --local outside of a git repo
setup_git_env: convert die("BUG") to BUG()
usage.c: add BUG() function
Diffstat (limited to 't/t1300-repo-config.sh')
-rwxr-xr-x | t/t1300-repo-config.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index afcca0d52c..13b7851f7c 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -1539,4 +1539,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 |