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

prepend does not update parent branch of current branch #3237

Open
ruudk opened this issue Mar 27, 2024 · 2 comments
Open

prepend does not update parent branch of current branch #3237

ruudk opened this issue Mar 27, 2024 · 2 comments
Labels

Comments

@ruudk
Copy link
Contributor

ruudk commented Mar 27, 2024

Today I noticed something odd.

I was working on a branch that was already synced using git town.

At some point I thought, I need to move some commits to a prepend branch.

I ran git town prepend and create the branch. Later, I synced it and it works fine.

Then I want back the the previous branch. When I ran sync, it asked me what the parent branch should be.

Well, that should be the one I just prepended.

I had to manually select it, and then it worked.

But I feel this should be automated.

The description says it should be:

Creates a new feature branch as the parent of the current branch.
Syncs the parent branch, cuts a new feature branch with the given name off the parent branch, makes the new branch the parent of the current branch, pushes the new feature branch to the origin repository (if "push-new-branches" is true), and brings over all uncommitted changes to the new feature branch.

@kevgo
Copy link
Contributor

kevgo commented Mar 27, 2024

This sounds like a regression. Thanks for reporting!

@kevgo
Copy link
Contributor

kevgo commented Mar 28, 2024

If anybody can reproduce this, posting the steps would be super helpful.

@kevgo kevgo added the bug label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants