@@ -952,7 +952,7 @@ static int create_signed(
952952 const char * message ,
953953 git_tree * tree ,
954954 size_t parent_count ,
955- git_commit * const * parents )
955+ const git_commit * * parents )
956956{
957957 git_str commit_content = GIT_STR_INIT ;
958958 git_buf commit_signature = { NULL , 0 , 0 },
@@ -1040,7 +1040,8 @@ static int rebase_commit__create(
10401040 if (rebase -> options .commit_create_cb ) {
10411041 error = rebase -> options .commit_create_cb (& commit_id ,
10421042 author , committer , message_encoding , message ,
1043- tree , 1 , & parent_commit , rebase -> options .payload );
1043+ tree , 1 , (const git_commit * * )& parent_commit ,
1044+ rebase -> options .payload );
10441045
10451046 git_error_set_after_callback_function (error ,
10461047 "commit_create_cb" );
@@ -1049,14 +1050,14 @@ static int rebase_commit__create(
10491050 else if (rebase -> options .signing_cb ) {
10501051 error = create_signed (& commit_id , rebase , author ,
10511052 committer , message_encoding , message , tree ,
1052- 1 , & parent_commit );
1053+ 1 , ( const git_commit * * ) & parent_commit );
10531054 }
10541055#endif
10551056
10561057 if (error == GIT_PASSTHROUGH )
10571058 error = git_commit_create (& commit_id , rebase -> repo , NULL ,
10581059 author , committer , message_encoding , message ,
1059- tree , 1 , & parent_commit );
1060+ tree , 1 , ( const git_commit * * ) & parent_commit );
10601061
10611062 if (error )
10621063 goto done ;
0 commit comments