Fix update_commits_with_patch_data