diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-05-29 12:34:45 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-29 12:34:45 +0900 |
commit | 220c6a70803d520a7cd19f9f2889650d54574470 (patch) | |
tree | 511bbcf9b63f7152729a716d8dbd049d2376ed29 /environment.c | |
parent | 15c96723457cfa1be6cdbd74e3131ecf13cd9790 (diff) | |
parent | 3d7dd2d3b6ccc8903a37cffe3a2f39cf1be21c86 (diff) | |
download | git-220c6a70803d520a7cd19f9f2889650d54574470.tar.gz |
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 'environment.c')
-rw-r--r-- | environment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c index 560408953c..aa478e71de 100644 --- a/environment.c +++ b/environment.c @@ -169,7 +169,7 @@ static void setup_git_env(void) git_dir = getenv(GIT_DIR_ENVIRONMENT); if (!git_dir) { if (!startup_info->have_repository) - die("BUG: setup_git_env called without repository"); + BUG("setup_git_env called without repository"); git_dir = DEFAULT_GIT_DIR_ENVIRONMENT; } gitfile = read_gitfile(git_dir); |