You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an addon runs on an app, fetches the repo for that app and changes the git branch to a different one, that change is permanent. Future addon runs will use that new branch. Even the Tackle UI shows the new branch instead of the one the user specified.
Steps to reproduce
Create an application in the Tackle 2 Hub with a repo url and a branch main.
Run an addon that fetches the repo and checkouts a different branch or creates a new branch.
Once the addon is finished, go back to the Tackle 2 Hub UI and look at the application. The branch will have changed.
The text was updated successfully, but these errors were encountered:
HarikrishnanBalagopal
changed the title
bug: repo branch is permanently changed when an addon does git checkout
bug: repo branch is changed permanently when an addon does git checkoutJan 5, 2023
Bug
When an addon runs on an app, fetches the repo for that app and changes the git branch to a different one, that change is permanent. Future addon runs will use that new branch. Even the Tackle UI shows the new branch instead of the one the user specified.
Steps to reproduce
main
.Context
Currently working around this issue in Move2Kube addon by detecting the current branch before checking out a new branch
https://github.com/konveyor/addon-move2kube/blob/main/cmd/utils.go#L114-L126
and then checking out the original branch once the transformation is finished.
https://github.com/konveyor/addon-move2kube/blob/main/cmd/utils.go#L148-L151
The text was updated successfully, but these errors were encountered: