]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.18] fix: ci: Use "git push --force-with-lease" for autorebases
authorMichał Kępień <michal@isc.org>
Thu, 30 Apr 2026 20:42:43 +0000 (22:42 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 30 Apr 2026 20:42:43 +0000 (22:42 +0200)
commit0a84d25577bfb576548732541043958aada7ddcb
treed70b709d8b7931441d143d9137873babf601248f
parentd7f9a6d627e3327fed7177eea6fccdd5f1a0ca92
parentda3c195824e6e7551bc0d98dca2117428dc44e4b
[9.18] fix: ci: Use "git push --force-with-lease" for autorebases

If a merge request is merged to an autorebased branch while it is
getting rebased, the "git push -f" command at the end of the autorebase
job will cause the contents of that merge request to be silently deleted
from Git history even though the merge request will still be (correctly)
shown as "merged" by GitLab.

Use "git push --force-with-lease" instead to prevent force-pushing the
rebased version of the branch if it is pushed to after its pre-rebase
version is fetched by the autorebase job.  Report such an event
accordingly.  For simplicity, no retries are attempted as the problem is
expected to be resolved by the next autorebase and the chances of this
scenario happening in practice are already low to begin with.

Backport of MR !11939

Merge branch 'backport-michal/use-git-push-force-with-lease-for-autorebases-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!11941