Always use system libgit2
authorXimin Luo <infinity0@debian.org>
Tue, 1 May 2018 07:32:05 +0000 (13:02 +0530)
committerVasudev Kamath <vasudev@copyninja.info>
Tue, 1 May 2018 07:32:05 +0000 (13:02 +0530)
Forwarded: not-needed

Gbp-Pq: Name 2001_use-system-libgit2.patch

vendor/libgit2-sys-0.6.19/build.rs

index c7545c2eb0f609bb8ecb8b413e816f977076c77f..c46a6786ddf829d3e1c73cb0a2890c007406407f 100644 (file)
@@ -31,12 +31,11 @@ fn main() {
     }
     let has_pkgconfig = Command::new("pkg-config").output().is_ok();
 
-    if env::var("LIBGIT2_SYS_USE_PKG_CONFIG").is_ok() {
-        if pkg_config::find_library("libgit2").is_ok() {
-            return
-        }
+    if pkg_config::find_library("libgit2").is_ok() {
+        return
     }
 
+
     if !Path::new("libgit2/.git").exists() {
         let _ = Command::new("git").args(&["submodule", "update", "--init"])
                                    .status();