Skip to content

Commit

Permalink
Always use system libgit2
Browse files Browse the repository at this point in the history
Forwarded: not-needed

Gbp-Pq: Name 2001_use-system-libgit2.patch
  • Loading branch information
infinity0 authored and copyninja committed May 1, 2018
1 parent 0e1902c commit 07a5cd1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vendor/libgit2-sys-0.6.19/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 07a5cd1

Please sign in to comment.