]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use "git push --force-with-lease" for autorebases
authorMichał Kępień <michal@isc.org>
Thu, 30 Apr 2026 20:19:59 +0000 (22:19 +0200)
committerMichał Kępień (GitLab job 7284905) <michal@isc.org>
Thu, 30 Apr 2026 20:35:26 +0000 (20:35 +0000)
commitda3c195824e6e7551bc0d98dca2117428dc44e4b
treed70b709d8b7931441d143d9137873babf601248f
parentd7f9a6d627e3327fed7177eea6fccdd5f1a0ca92
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.

(cherry picked from commit f5a7671107e0c51f2a30b0d15aa24298694cb77a)
.gitlab-ci.yml