Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User story for re-init git-bundle on remotes after history rewriting #443

Open
frlan opened this issue Mar 8, 2024 · 0 comments
Open

User story for re-init git-bundle on remotes after history rewriting #443

frlan opened this issue Mar 8, 2024 · 0 comments
Milestone

Comments

@frlan
Copy link
Member

frlan commented Mar 8, 2024

From time to time after a force push of a feature branch batou's git-bundle is not able to resolve the diff and fails. Example:

ERROR: Created invalid bundle (0 bytes):
fatal: Invalid revision range 04de9fa18a7a6a104e61c45b09b9a75d0565ec1f..master

ERROR: Created invalid bundle (0 bytes):
fatal: Invalid revision range 04de9fa18a7a6a104e61c45b09b9a75d0565ec1f..master

(in this example 04de9fa18a7a6a104e61c45b09b9a75d0565ec1f was removed due to some history rewriting on purpose and totally correct)

This kind of error in general indicates that something (on user side) is unexpected wrong. But in some reasons (e.g. force push on feature branch that deletes current checked out deployment revision on remote) it leads to much manual affords as you have to login to all remotes and clear up .git folder -- having a deployment with 20+ hosts in mind.

It would be handy to have maybe something like ./batou deploy --re-init-bundle or similar, to let batou do the dirty work.

@zagy zagy added this to the batou 2.6 milestone Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants