@@ -952,7 +952,7 @@ static int create_signed(
952
952
const char * message ,
953
953
git_tree * tree ,
954
954
size_t parent_count ,
955
- git_commit * const * parents )
955
+ const git_commit * * parents )
956
956
{
957
957
git_str commit_content = GIT_STR_INIT ;
958
958
git_buf commit_signature = { NULL , 0 , 0 },
@@ -1040,7 +1040,8 @@ static int rebase_commit__create(
1040
1040
if (rebase -> options .commit_create_cb ) {
1041
1041
error = rebase -> options .commit_create_cb (& commit_id ,
1042
1042
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 );
1044
1045
1045
1046
git_error_set_after_callback_function (error ,
1046
1047
"commit_create_cb" );
@@ -1049,14 +1050,14 @@ static int rebase_commit__create(
1049
1050
else if (rebase -> options .signing_cb ) {
1050
1051
error = create_signed (& commit_id , rebase , author ,
1051
1052
committer , message_encoding , message , tree ,
1052
- 1 , & parent_commit );
1053
+ 1 , ( const git_commit * * ) & parent_commit );
1053
1054
}
1054
1055
#endif
1055
1056
1056
1057
if (error == GIT_PASSTHROUGH )
1057
1058
error = git_commit_create (& commit_id , rebase -> repo , NULL ,
1058
1059
author , committer , message_encoding , message ,
1059
- tree , 1 , & parent_commit );
1060
+ tree , 1 , ( const git_commit * * ) & parent_commit );
1060
1061
1061
1062
if (error )
1062
1063
goto done ;
0 commit comments