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