resolve_gitlink_packed_ref(): remove function