]> git.ipfire.org Git - thirdparty/git.git/commit
fetch: drop unneeded NULL-check for `remote_ref`
authorPatrick Steinhardt <ps@pks.im>
Wed, 17 May 2023 11:48:46 +0000 (13:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 May 2023 16:55:33 +0000 (09:55 -0700)
commit6bc7a37e79876092b42a89156a8c24d0a60bd672
treeb0fe7e0d81f7bf5e3a28683dc7c97de19a27570e
parenta40449bcd481ac2a164c55b4f038ced731cd9f2d
fetch: drop unneeded NULL-check for `remote_ref`

Drop the `NULL` check for `remote_ref` in `update_local_ref()`. The
function only has a single caller, and that caller always passes in a
non-`NULL` value.

This fixes a false positive in Coverity.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c