summaryrefslogtreecommitdiff
path: root/sha1-name.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-04-22 20:42:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-22 20:42:55 (GMT)
commit95ca48973d351cdd40e6497b82ab85b95e432fab (patch)
tree9e275d3dad4046ec1f10fde07ee10cee21231449 /sha1-name.c
parentbc20556505e4c337d34d1e5272c9bdc274dd081a (diff)
parent022046107186746913ef43a33f4b6862817bf6da (diff)
downloadgit-95ca48973d351cdd40e6497b82ab85b95e432fab.zip
git-95ca48973d351cdd40e6497b82ab85b95e432fab.tar.gz
git-95ca48973d351cdd40e6497b82ab85b95e432fab.tar.bz2
Merge branch 'jc/missing-ref-store-fix'
We've left the command line parsing of "git log :/a/b/" broken for about a full year without anybody noticing, which has been corrected. * jc/missing-ref-store-fix: repository: mark the "refs" pointer as private sha1-name: do not assume that the ref store is initialized
Diffstat (limited to 'sha1-name.c')
-rw-r--r--sha1-name.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1-name.c b/sha1-name.c
index 6561cd9..0b8cb52 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -1815,8 +1815,8 @@ static enum get_oid_result get_oid_with_context_1(struct repository *repo,
cb.repo = repo;
cb.list = &list;
- refs_for_each_ref(repo->refs, handle_one_ref, &cb);
- refs_head_ref(repo->refs, handle_one_ref, &cb);
+ refs_for_each_ref(get_main_ref_store(repo), handle_one_ref, &cb);
+ refs_head_ref(get_main_ref_store(repo), handle_one_ref, &cb);
commit_list_sort_by_date(&list);
return get_oid_oneline(repo, name + 2, oid, list);
}