aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-reach.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-03-28 15:58:46 +0200
committerJunio C Hamano <gitster@pobox.com>2023-03-28 07:36:36 -0700
commitd850b7a545fcfbd97460a921c7f7c59d933eb0f7 (patch)
treee36940d63b92557a8d930301ff96e70e55cc222d /t/helper/test-reach.c
parentcocci: add missing "the_repository" macros to "pending" (diff)
downloadgit-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.tar.gz
git-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.zip
cocci: apply the "cache.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "cache.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-reach.c')
-rw-r--r--t/helper/test-reach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-reach.c b/t/helper/test-reach.c
index 2f65c7f6a5..00f0f29a6a 100644
--- a/t/helper/test-reach.c
+++ b/t/helper/test-reach.c
@@ -57,7 +57,7 @@ int cmd__reach(int ac, const char **av)
if (buf.len < 3)
continue;
- if (get_oid_committish(buf.buf + 2, &oid))
+ if (repo_get_oid_committish(the_repository, buf.buf + 2, &oid))
die("failed to resolve %s", buf.buf + 2);
orig = parse_object(r, &oid);