-
Notifications
You must be signed in to change notification settings - Fork 272
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
Force Pushing to Write Back Branch #433
Comments
I have a similar issue. I wonder whether the Perhaps the behaviour should be that it only checks out the base branch if it is ahead of the target branch, otherwise the target branch is checked out. That way any existing commits to the branch from previous updates or other applications will be retained and the push would succeed. |
I have a similar issue. The force push solution would work but would erase previous commit and force having one commit for all updates in once. It's not a problem for me but it wouldn't suit any use case. I think the main use case of the base branch is to ensure the target branch is up to date with latest changes but prevent commit directly in the target revision. Maybe a good flow would be:
It's just my idea of a flow working with my use case without breaking too much the current workflow but I don't know if it would suit all users needs. |
Any updates on this? |
Same here, I just got this issue. Is there any recommendations on how to avoid this and how to prevent this from happening? Or a way to force it. |
Hello,
I have configured and argocd application called test-app that tracks a branch called argocd (main is protected). I then setup argocd-image-updater to checkout from main and then push to argocd branch, but I get the below error. How can I force push to the write back branch?
My git annotations are
Appreciate any insight on the recommended approach here!
The text was updated successfully, but these errors were encountered: