Always use system libgit2
authorXimin Luo <infinity0@debian.org>
Sun, 3 Jun 2018 15:12:13 +0000 (20:42 +0530)
committerVasudev Kamath <vasudev@copyninja.info>
Sun, 3 Jun 2018 15:12:13 +0000 (20:42 +0530)
Forwarded: not-needed

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

vendor/libgit2-sys-0.7.1/build.rs

index 845a85f1cb700ab7e74b91152c8694c8dc4d6321..786ac9ce9f0b2f51845d0c9ef3070f459b906473 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();