(path: &Path)
| 156 | |
| 157 | #[cfg(unix)] |
| 158 | fn make_executable(path: &Path) { |
| 159 | use std::os::unix::fs::PermissionsExt; |
| 160 | |
| 161 | let mut permissions = fs::metadata(path).expect("script metadata").permissions(); |
| 162 | permissions.set_mode(0o755); |
| 163 | fs::set_permissions(path, permissions).expect("set executable"); |
| 164 | } |
| 165 | |
| 166 | #[test] |
| 167 | fn shim_enable_records_checkout_and_direct_observation_does_not_need_the_hook() { |
no test coverage detected