refs: remove some unnecessary handling of submodule == ""
commitb4f540b6cefdb33f35ffd5f8b2fb459c184a1bd7
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 10 Feb 2017 11:16:13 +0000 (10 12:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Feb 2017 19:13:26 +0000 (10 11:13 -0800)
treed6bffab426c26d730e00e320e11aea113007991e
parentc468da4e2796868362c2f33b499d9bb6d6cd7043
refs: remove some unnecessary handling of submodule == ""

The only external entry point to the ref_store lookup functions is
get_ref_store(), which ensures that submodule == "" is passed along as
NULL. So ref_store_init() and lookup_ref_store() don't have to handle
submodule being specified as the empty string.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c