-
Notifications
You must be signed in to change notification settings - Fork 410
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
branch_upstream_remote
says local branch does not exist when it does
#1055
Comments
branch_upstream_remote
says local branch does not exist when it does
branch_upstream_remote needs it in the form |
Great, thank you! That worked. Can this be added to the documentation or is it out of scope? |
Thanks to @ehuss for the tip: rust-lang/git2-rs#1055 (comment)
Yea, it could be added to the docs. There is some risk it will get out of sync with libgit2 if that behavior is ever changed, but it seems like a low risk. |
repo: add branch_upstream_remote refname doc (#1055)
I have a local git repository with the branch name
master
that tracksorigin/master
. I'm trying to write some Rust code to replicategit push && git push --tags
.Here is my code so far:
When I run the program, however, it panics at the
let upstream_remote
line, with the following output:The error message doesn't make sense, because the previous line of
let branch_name
got the currently active local branch. Am I callingbranch_upstream_remote
incorrectly?The text was updated successfully, but these errors were encountered: