diff options
Diffstat (limited to 'sha1-name.c')
-rw-r--r-- | sha1-name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-name.c b/sha1-name.c index 3aba62938f..c679e246cd 100644 --- a/sha1-name.c +++ b/sha1-name.c @@ -1772,7 +1772,7 @@ static enum get_oid_result get_oid_with_context_1(struct repository *repo, cb.repo = repo; cb.list = &list; refs_for_each_ref(get_main_ref_store(repo), handle_one_ref, &cb); - refs_head_ref(repo->refs, 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); } |