Open HarikrishnanBalagopal opened 1 year ago
cc @jortel
@HarikrishnanBalagopal I figured running what I had over here would demonstrate the behavior that you were describing, but I didn't see that.
TACKLE HUB UI
GitHub UI looking at my tackle-pathfinder fork
Did I miss something?
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