mirror of
https://github.com/git/git
synced 2024-10-02 14:45:21 +00:00
replace: avoid using die() to indicate a bug
We have the BUG() macro for that purpose. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
fef461ea5d
commit
d398f2ea00
|
@ -501,6 +501,6 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
|
|||
return list_replace_refs(argv[0], format);
|
||||
|
||||
default:
|
||||
die("BUG: invalid cmdmode %d", (int)cmdmode);
|
||||
BUG("invalid cmdmode %d", (int)cmdmode);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue