builtin-fetch.c (store_updated_refs): Honor update_local_ref() return value
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 28 May 2008 15:29:36 +0000 (19:29 +0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 May 2008 17:47:12 +0000 (10:47 -0700)
commitefb98b44536300f5daed25da3650033a1ce7fdef
tree3eb5955b1dd88addafa444b746fd240bdee4389a
parent6eec46bdda7393f1801df70a44d2e0577760a691
builtin-fetch.c (store_updated_refs): Honor update_local_ref() return value

Sync with builtin-fetch--tool.c where append_fetch_head()
honors update_local_ref() return value.

This fixes non fast forward fetch exit status,
http://bugzilla.altlinux.org/show_bug.cgi?id=15037

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c
t/t5518-fetch-exit-status.sh [new file with mode: 0755]