Comments (3)
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.
from git2-rs.
branch_upstream_remote needs it in the form refs/heads/master
. Use head_ref.name()
instead of shorthand()
.
from git2-rs.
Great, thank you! That worked. Can this be added to the documentation or is it out of scope?
I can submit a PR if it isn't. Feel free to close the issue otherwise :)
from git2-rs.
Related Issues (20)
- Unclear documatation: branch_remote_name
- Build problems with installed libgit2 1.8.0 HOT 3
- The error caused by failed `push_negotiation` is strange: `"config value 'pack.windowMemory' was not found"` HOT 4
- git clone arguments HOT 1
- Segmentation fault when cloning invalid URL HOT 1
- path matching inconsistent error
- How do you reset changed files and delete the untracked ones to bring repo to a clean state?
- push credentials on github actions HOT 1
- Use SSH over HTTPs HOT 1
- Segfault during fetch HOT 8
- How to execute rebase - i to merge multiple commits into one
- Question about remote clone HOT 1
- DiffFormat::PatchHeader fails to print
- Undefined symbols for architecture arm64 HOT 1
- feat: Implement the `git_commit_time()` method for the commit struct
- Question about maintainers HOT 2
- Support for filter for Repository fetch options.
- passworded ssh keys not working with Cred::ssh_key_from_agent on Mac HOT 1
- `fetch_options` in `RepoBuilder` receives immutable variable, but `remote_callbacks` of `FetchOptions` returns mutable variable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git2-rs.