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

git_branch_upstream could not get the upstream branch in config.worktree #6650

Closed
Whirlwind opened this issue Oct 30, 2023 · 2 comments
Closed

Comments

@Whirlwind
Copy link

Reproduction steps

$ git clone --filter=blob:none git@xxx:xx/xx.git
$ cd xx
$ git worktree add ../worktree
$ cd ../worktree
$ git config extensions.worktreeConfig true
$ git checkout new-branch
$ git push -u

Then, use the git_branch_upstream will could not get the origin/new-branch, it said GIT_ENOTFOUND.

Expected behavior

git_branch_upstream can get the upstream branch in the config.worktree.

Actual behavior

throw error.

Version of libgit2 (release number or SHA1)

1.6.4

Operating system(s) tested

macOS 14.1

@csware
Copy link
Contributor

csware commented Feb 24, 2024

cf. #6044

@ethomson
Copy link
Member

ethomson commented May 3, 2024

Should be fixed via #6756

@ethomson ethomson closed this as completed May 3, 2024
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

3 participants