Merge branch 'js/use-bug-macro'
Developer support update, by using BUG() macro instead of die() to
mark codepaths that should not happen more clearly.
* js/use-bug-macro:
BUG_exit_code: fix sparse "symbol not declared" warning
Convert remaining die*(BUG) messages
Replace all die("BUG: ...") calls by BUG() ones
run-command: use BUG() to report bugs, not die()
test-tool: help verifying BUG() code paths
This commit is contained in:
@ -543,7 +543,7 @@ static int run_fetch(const char *repo, const char **refspecs)
|
||||
argv_array_push(&args, repo);
|
||||
argv_array_pushv(&args, refspecs);
|
||||
} else if (*refspecs)
|
||||
die("BUG: refspecs without repo?");
|
||||
BUG("refspecs without repo?");
|
||||
ret = run_command_v_opt(args.argv, RUN_GIT_CMD);
|
||||
argv_array_clear(&args);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user