summaryrefslogtreecommitdiff
path: root/mailmap.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-03-28 13:58:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-03-28 14:36:36 (GMT)
commitd850b7a545fcfbd97460a921c7f7c59d933eb0f7 (patch)
treee36940d63b92557a8d930301ff96e70e55cc222d /mailmap.c
parent7258e892d2c0f7a615562656e9978f39f610c056 (diff)
downloadgit-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.zip
git-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.tar.gz
git-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.tar.bz2
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 'mailmap.c')
-rw-r--r--mailmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailmap.c b/mailmap.c
index da2589b..ed8289a 100644
--- a/mailmap.c
+++ b/mailmap.c
@@ -213,7 +213,7 @@ static int read_mailmap_blob(struct string_list *map, const char *name)
if (!name)
return 0;
- if (get_oid(name, &oid) < 0)
+ if (repo_get_oid(the_repository, name, &oid) < 0)
return 0;
buf = read_object_file(&oid, &type, &size);