setup_git_env: convert die("BUG") to BUG()
commit588a538ae554f61a37d43c972da75d0f7c3ed484
authorJeff King <peff@peff.net>
Sat, 13 May 2017 03:29:18 +0000 (12 23:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 May 2017 02:30:00 +0000 (15 11:30 +0900)
tree97c3c46b9d2b8468faa7d134c9757b8c520087c8
parentd8193743e0883e7331c102a4d04cee5324eb3b5f
setup_git_env: convert die("BUG") to BUG()

Converting to BUG() makes it easier to detect and debug
cases where we hit this assertion. Coupled with a new test
in t1300, this shows that the test suite can detect such
corner cases.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c
t/t1300-repo-config.sh