forked from rust-lang/git2-rs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set libgit2's last_error to the error returned by a custom transport (r…
…ust-lang#576) Previously, the propagated error would always be the default "unknown error" as returned by `Error::last_error` if `git_error_last` returns a null pointer. The attached test case is rather trivial, but can be used to reproduce the old and new behaviour.
- Loading branch information
Showing
1 changed file
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters