diff --git a/pr_agent/git_providers/bitbucket_server_provider.py b/pr_agent/git_providers/bitbucket_server_provider.py index f7e2f92b..dcdedadd 100644 --- a/pr_agent/git_providers/bitbucket_server_provider.py +++ b/pr_agent/git_providers/bitbucket_server_provider.py @@ -144,7 +144,7 @@ class BitbucketServerProvider(GitProvider): for commit in source_commits_list: for parent_commit in commit['parents']: - if commit['id'] in destination_commit_hashes or parent_commit['id'] in destination_commit_hashes: + if parent_commit['id'] in destination_commit_hashes: return parent_commit['id'] return guaranteed_common_ancestor