Code

Fix an enum assignment issue spotted by Sun Studio
[git.git] / notes-merge.c
index ce10aacf2978024eda0234482964577e9235f2d2..2de27af751476a62dc9b0afe48eb360f83a0702b 100644 (file)
@@ -573,7 +573,7 @@ int notes_merge(struct notes_merge_options *o,
               o->local_ref, o->remote_ref);
 
        /* Dereference o->local_ref into local_sha1 */
-       if (!resolve_ref(o->local_ref, local_sha1, 0, NULL))
+       if (read_ref_full(o->local_ref, local_sha1, 0, NULL))
                die("Failed to resolve local notes ref '%s'", o->local_ref);
        else if (!check_refname_format(o->local_ref, 0) &&
                is_null_sha1(local_sha1))