We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git_branch_upstream
config.worktree
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 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.
origin/new-branch
GIT_ENOTFOUND
git_branch_upstream can get the upstream branch in the config.worktree.
throw error.
1.6.4
macOS 14.1
The text was updated successfully, but these errors were encountered:
cf. #6044
Sorry, something went wrong.
Should be fixed via #6756
No branches or pull requests
Reproduction steps
Then, use the
git_branch_upstream
will could not get theorigin/new-branch
, it saidGIT_ENOTFOUND
.Expected behavior
git_branch_upstream
can get the upstream branch in theconfig.worktree
.Actual behavior
throw error.
Version of libgit2 (release number or SHA1)
1.6.4
Operating system(s) tested
macOS 14.1
The text was updated successfully, but these errors were encountered: