Debian Codegraph @

debian/patches/skip-credential_helper5-if-no-git.patch

raw
1 Skip the "credential_helper5" test if git is not installled.
2 Index: git2/src/cred.rs
3 ===================================================================
4 --- git2.orig/src/cred.rs
5 +++ git2/src/cred.rs
6 @@ -580,6 +580,9 @@ echo username=c
7
8 #[test]
9 fn credential_helper5() {
10 + if !Path::new("/usr/bin/git").exists() {
11 + return;
12 + } //this test does not work if git is not installed
13 if cfg!(windows) {
14 return;
15 } // shell scripts don't work on Windows