]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
branch: remove negative exit code
authorGlen Choo <chooglen@google.com>
Tue, 29 Mar 2022 20:01:19 +0000 (20:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Mar 2022 23:45:05 +0000 (16:45 -0700)
commit5391e94813418dfb5ccc4c2f1d8518995b4f3ca5
treeeb659fb3e2c77675a9c773a4938f77b3194203ac
parentac59c742de5f548ed07735fb212cc87129383bcd
branch: remove negative exit code

Replace an instance of "exit(-1)" with "exit(1)". We don't use negative
exit codes - they are misleading because Unix machines will coerce them
to 8-bit unsigned values, losing the sign.

Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c