fix(autopatch): Added 'pre_clean: true' to parameters section in config.yaml to handle unrelated git histories between c10-beta and a10- #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "agent-fix/a10-beta-20260407-103406"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated fix by autopatch agent.
Summary: Added 'pre_clean: true' to parameters section in config.yaml to handle unrelated git histories between c10-beta and a10-beta branches.
Root cause
The error 'fatal: refusing to merge unrelated histories' occurred because the upstream CentOS Stream branch (c10-beta) and the AlmaLinux target branch (a10-beta) have no common git ancestor. The autopatch tool's reset_to_base_branch() function attempts a 'git merge c10-beta' which git refuses when histories are unrelated. Setting 'pre_clean: true' in the parameters section activates the pre-clean code path: the working directory is cleaned and files are copied directly from the base branch before the merge attempt. When the merge subsequently fails, the error is caught and ignored (pre_clean path), and the tool proceeds with file replacement instead. All actions applied successfully after the fix: delete_line, replace (6 entries), modify_release, and changelog_entry.
Original error
Type:
RuntimeErrorPackage:
grub2| Webhook branch:c10-beta