mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
refactor: remove unnecessary git_libgit2_init()
This commit is contained in:
parent
ce9384cac9
commit
6bd04bb09d
5 changed files with 1 additions and 8 deletions
|
@ -17,7 +17,6 @@ class Oid {
|
|||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
Oid.fromSHA(Repository repository, String sha) {
|
||||
libgit2.git_libgit2_init();
|
||||
if (sha.length == 40) {
|
||||
_oidPointer = bindings.fromSHA(sha);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue