We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
use_the_cli
1 parent b714d42 commit e29aaccCopy full SHA for e29aacc
tests/testsuite/git.rs
@@ -1,4 +1,5 @@
1
use git2;
2
+use std::env;
3
use std::fs::{self, File};
4
use std::io::prelude::*;
5
use std::net::{TcpListener, TcpStream};
@@ -2575,6 +2576,12 @@ fn failed_submodule_checkout() {
2575
2576
2577
#[test]
2578
fn use_the_cli() {
2579
+ if env::var("CARGO_TEST_DISABLE_GIT_CLI") == Ok("1".to_string()) {
2580
+ // mingw git on Windows does not support Windows-style file URIs.
2581
+ // Appveyor in the rust repo has that git up front in the PATH instead
2582
+ // of Git-for-Windows, which causes this to fail.
2583
+ return;
2584
+ }
2585
let project = project();
2586
let git_project = git::new("dep1", |project| {
2587
project
0 commit comments