Codebase list rust-libslirp / fe7cd4b
git2: skip credential_helper5 test if git is not installed. Peter Michael Green 3 years ago
3 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 rust-git2 (0.13.11-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package git2 0.13.11 from crates.io using debcargo 2.4.3
4 * Skip the credential_helper5 test if git is not installed.
5
6 -- Peter Michael Green <plugwash@debian.org> Tue, 08 Dec 2020 16:33:13 +0000
7
08 rust-git2 (0.13.11-1) unstable; urgency=medium
19
210 * Package git2 0.13.11 from crates.io using debcargo 2.4.3
00 disable-vendor.patch
11 remove-zlib-ng-compat.patch
2 skip-credential_helper5-if-no-git.patch
0 Skip the "credential_helper5" test if git is not installled.
1 --- rust-git2-0.13.11/src/cred.rs 2020-09-08 17:22:58.000000000 +0000
2 +++ git2/src/cred.rs 2020-12-08 16:24:02.074582707 +0000
3 @@ -529,6 +529,9 @@
4
5 #[test]
6 fn credential_helper5() {
7 + if !Path::new("/usr/bin/git").exists() {
8 + return;
9 + } //this test does not work if git is not installed
10 if cfg!(windows) {
11 return;
12 } // shell scripts don't work on Windows