summaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-03-28 15:58:54 +0200
committerJunio C Hamano <gitster@pobox.com>2023-03-28 16:36:46 +0200
commit12cb1c10a64170a5d600dd1c6c8abfeec105fb6b (patch)
tree2209f7a97ef9e13aa6979efacd4f6dc93f23d5f7 /commit.c
parentcocci: apply the "promisor-remote.h" part of "the_repository.pending" (diff)
downloadgit-12cb1c10a64170a5d600dd1c6c8abfeec105fb6b.tar.xz
git-12cb1c10a64170a5d600dd1c6c8abfeec105fb6b.zip
cocci: apply the "refs.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "refs.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index dd22e76c3e..0e2fc7dbab 100644
--- a/commit.c
+++ b/commit.c
@@ -996,7 +996,8 @@ struct commit *get_fork_point(const char *refname, struct commit *commit)
struct commit *ret = NULL;
char *full_refname;
- switch (dwim_ref(refname, strlen(refname), &oid, &full_refname, 0)) {
+ switch (repo_dwim_ref(the_repository, refname, strlen(refname), &oid,
+ &full_refname, 0)) {
case 0:
die("No such ref: '%s'", refname);
case 1: