refs: pass NULL to refs_read_ref_full() because object ID is not needed
commite0ae2447d66aa3983837ddc3d6fc0c3371a8e350
authorRené Scharfe <l.s.r@web.de>
Wed, 11 Dec 2019 18:46:19 +0000 (11 19:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2019 21:48:42 +0000 (11 13:48 -0800)
tree0331e72e5f0485836484da38360bb1e990fd8cb2
parentad05a3d8e5a6a06443836b5e40434262d992889a
refs: pass NULL to refs_read_ref_full() because object ID is not needed

refs_read_ref_full() wraps refs_resolve_ref_unsafe(), which handles a
NULL oid pointer of callers not interested in the resolved object ID.
Pass NULL from files_copy_or_rename_ref() to clarify that it is one
such caller.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c