From f1e9c954987d4c862cc63cbb37026434d219f248 Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Thu, 10 Feb 2022 00:53:10 +0100 Subject: [PATCH] `libssh2-sys`: use `src` instead `.git` as vendored indicator When someone vendored `libssh-sys` he may exclude `.git` folder. When such things happened an attempt to build it may lead to error like: `fatal: not a git repository (or any of the parent directories): .git`. --- libssh2-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs index d1d33dc0..eb6e5028 100644 --- a/libssh2-sys/build.rs +++ b/libssh2-sys/build.rs @@ -32,7 +32,7 @@ fn main() { } } - if !Path::new("libssh2/.git").exists() { + if !Path::new("libssh2/src").exists() { let _ = Command::new("git") .args(&["submodule", "update", "--init"]) .status();