From bcb2f65c0e1fd2df2395aa37af51140adb1a5d5f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 8 Apr 2016 11:17:21 -0700 Subject: Test for .git directory --- libssh2-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh2-sys/build.rs') diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs index e66cea6..dbcffab 100644 --- a/libssh2-sys/build.rs +++ b/libssh2-sys/build.rs @@ -18,7 +18,7 @@ fn main() { return } - if !Path::new("libssh2").exists() { + if !Path::new("libssh2/.git").exists() { let _ = Command::new("git").args(&["submodule", "update", "--init"]) .status(); } -- cgit v1.2.3