summaryrefslogtreecommitdiff
path: root/libssh2-sys/build.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-04-08 11:17:21 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-04-08 11:17:21 -0700
commitbcb2f65c0e1fd2df2395aa37af51140adb1a5d5f (patch)
tree502dd2a3a37acda044467372c6963a44c2fa0726 /libssh2-sys/build.rs
parent9ace60ee042cb80e1649de64386160afb9c881d7 (diff)
downloadssh2-rs-bcb2f65c0e1fd2df2395aa37af51140adb1a5d5f.zip
Test for .git directory
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r--libssh2-sys/build.rs2
1 files changed, 1 insertions, 1 deletions
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();
}