]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
remote.c: turn some error() or die() to BUG()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 10 Nov 2018 05:16:08 +0000 (06:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Nov 2018 05:47:09 +0000 (14:47 +0900)
commit92ca868068a9559bf1c02f2e7b9dd443fdb4f39f
tree2b4fd4e87977e3041cad7cf1c574e61eb490210b
parentdd509db342b8656aa9e137005639e3492f17353c
remote.c: turn some error() or die() to BUG()

The first error, "internal error", is clearly a BUG(). The second two
are meant to catch calls with invalid parameters and should never
happen outside the test suite.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c