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

Additional origin added for Head and Merge #77

Open
skipadu opened this issue Feb 8, 2022 · 2 comments
Open

Additional origin added for Head and Merge #77

skipadu opened this issue Feb 8, 2022 · 2 comments

Comments

@skipadu
Copy link

skipadu commented Feb 8, 2022

I have occassionally problem when I'm creating new worktree, using the telescope extension to do that.
I try to describe the issue and if someone have knowledge what I'm doing wrong and could tell me how to fix it.

Working one

When it successfully creates new worktree I can see that following infos are correct when looked with vim-fugitive:

Head: fix/jumping-frog
Merge: origin/fix/jumping-frog

And this works as wanted; able to see correct history of Git, git log and so on.

Broken one

When it is broken one, it does not say any error or so but the infos are somehow messed as it puts additional origin as following:

Head: origin/feature/cooling-box
Push: origin/origin/feature/cooling-box

Using Telescope extension

This is how I call the telescope extension:

nnoremap <silent> <Leader>G :lua require('telescope').extensions.git_worktree.create_git_worktree()<CR>

Then I choose wanted branch and press Enter. I will leave the Path to subtree as empty (I have tested to give it a path, but same issue exists.)
I wait that it has done it's thing "Running post switch callbacks" etc.

After this I can confirm the issue by looking the git log and it does not show the changes of that branch, but instead the default branch of the repo, develop.
And when looking the status with vim-fugitive, the additional origin was added.

@RobertBrunhage
Copy link

RobertBrunhage commented Oct 3, 2022

Seeing the same issue, did you happen to find a solution? Always happen when I try to create a branch from a origin branch that I don't have locally

@skipadu
Copy link
Author

skipadu commented Oct 6, 2022

Seeing the same issue, did you happen to find a solution? Always happen when I try to create a branch from a origin branch that I don't have locally

No, I did not find a solution for this.

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