]> git.ipfire.org Git - thirdparty/git.git/blobdiff - notes-merge.c
The sixth batch
[thirdparty/git.git] / notes-merge.c
index 51282934ae62b8e7daefcf8202b98e006c416c07..6a9a139b123f23e9c331fc1bbcad75cbb1f97adb 100644 (file)
@@ -562,7 +562,7 @@ int notes_merge(struct notes_merge_options *o,
               o->local_ref, o->remote_ref);
 
        /* Dereference o->local_ref into local_sha1 */
-       if (read_ref_full(o->local_ref, 0, &local_oid, NULL))
+       if (refs_read_ref_full(get_main_ref_store(the_repository), o->local_ref, 0, &local_oid, NULL))
                die("Failed to resolve local notes ref '%s'", o->local_ref);
        else if (!check_refname_format(o->local_ref, 0) &&
                is_null_oid(&local_oid))