refs.c: pass the ref log message to _create/delete/update instead of _commit
[gitweb.git] / builtin / commit.c
index 81dc622a3b72040daca199f05d0a3322f316e6f6..a7857ab56092f0144bb259f85d8078ba0531e627 100644 (file)
@@ -1811,8 +1811,8 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
            ref_transaction_update(transaction, "HEAD", sha1,
                                   current_head
                                   ? current_head->object.sha1 : NULL,
-                                  0, !!current_head, &err) ||
-           ref_transaction_commit(transaction, sb.buf, &err)) {
+                                  0, !!current_head, sb.buf, &err) ||
+           ref_transaction_commit(transaction, &err)) {
                rollback_index_files();
                die("%s", err.buf);
        }