]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.c
cocci: apply the "refs.h" part of "the_repository.pending"
[thirdparty/git.git] / commit.c
index dd22e76c3e16851f3a16476d37fe9d5343a6797d..0e2fc7dbab817257a57ef3ff2656616782479366 100644 (file)
--- 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: