Skip to content

Commit 1f6dec4

Browse files
committed
libgit2-sys: use src instead .git as vendored indicator
When someone vendored `libgit2-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`. The only way to fix it is using system's `libgit2` which may lead to `invalid version 0 on git_proxy_options; class=Invalid (3)` at some cases. Backported as: rust-lang/git2-rs#801
1 parent 8fdbc8a commit 1f6dec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vendor/libgit2-sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn main() {
2020
}
2121
}
2222

23-
if !Path::new("libgit2/.git").exists() {
23+
if !Path::new("libgit2/src").exists() {
2424
let _ = Command::new("git")
2525
.args(&["submodule", "update", "--init", "libgit2"])
2626
.status();

0 commit comments

Comments
 (0)