summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-08-23 12:37:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-24 21:59:02 (GMT)
commit82a150f27a16cd1425d4c78904470e4b7b8c4cf7 (patch)
treece6f6406f3f31af9c2898cb2807cb49de9b72c7d /refs
parent32619f99f94760e90c36fd2a4476f459cb11aa41 (diff)
downloadgit-82a150f27a16cd1425d4c78904470e4b7b8c4cf7.zip
git-82a150f27a16cd1425d4c78904470e4b7b8c4cf7.tar.gz
git-82a150f27a16cd1425d4c78904470e4b7b8c4cf7.tar.bz2
refs.c: remove fallback-to-main-store code get_submodule_ref_store()
At this state, there are three get_submodule_ref_store() callers: - for_each_remote_ref_submodule() - handle_revision_pseudo_opt() - resolve_gitlink_ref() The first two deal explicitly with submodules (and we should never fall back to the main ref store as a result). They are only called from submodule.c: - find_first_merges() - submodule_needs_pushing() - push_submodule() The last one, as its name implies, deals only with submodules too, and the "submodule" (path) argument must be a non-NULL, non-empty string. So, this "if NULL or empty string" code block should never ever trigger. And it's wrong to fall back to the main ref store anyway. Delete it. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
0 files changed, 0 insertions, 0 deletions