Skip to content

Commit eb218a6

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 59fa68e commit eb218a6

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
@@ -22,7 +22,7 @@ fn main() {
2222
}
2323
}
2424

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

0 commit comments

Comments
 (0)