X-Git-Url: https://git.uis.cam.ac.uk/x/uis/git/git.git/blobdiff_plain/2616a5e5089814188a583572bd9bf578b18a2a40..ae077771b09fac4d663e3f8c039318a97eb3a15b:/notes-utils.c diff --git a/notes-utils.c b/notes-utils.c index 9765deb41a..3a7008948c 100644 --- a/notes-utils.c +++ b/notes-utils.c @@ -49,7 +49,7 @@ void commit_notes(struct notes_tree *t, const char *msg) create_notes_commit(t, NULL, buf.buf, buf.len, commit_oid.hash); strbuf_insert(&buf, 0, "notes: ", 7); /* commit message starts at index 7 */ - update_ref(buf.buf, t->update_ref, commit_oid.hash, NULL, 0, + update_ref(buf.buf, t->update_ref, &commit_oid, NULL, 0, UPDATE_REFS_DIE_ON_ERR); strbuf_release(&buf);