summaryrefslogtreecommitdiff
path: root/sha1-name.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-04-06 11:34:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-08 08:26:33 (GMT)
commit7fdff47432bbb591b6e44ebab48e1f206521cd1b (patch)
tree3c505587cd0a71fd41a7047af24dc6b6b3c2bfa0 /sha1-name.c
parent567009033f7ef4619c890f0e07d7e0b67136e1b1 (diff)
downloadgit-7fdff47432bbb591b6e44ebab48e1f206521cd1b.zip
git-7fdff47432bbb591b6e44ebab48e1f206521cd1b.tar.gz
git-7fdff47432bbb591b6e44ebab48e1f206521cd1b.tar.bz2
refs.c: remove the_repo from read_ref_at()
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 'sha1-name.c')
-rw-r--r--sha1-name.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sha1-name.c b/sha1-name.c
index d535bb8..15a1107 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -849,7 +849,8 @@ static int get_oid_basic(const char *str, int len, struct object_id *oid,
return -1;
}
}
- if (read_ref_at(real_ref, flags, at_time, nth, oid, NULL,
+ if (read_ref_at(get_main_ref_store(the_repository),
+ real_ref, flags, at_time, nth, oid, NULL,
&co_time, &co_tz, &co_cnt)) {
if (!len) {
if (starts_with(real_ref, "refs/heads/")) {