Binding transport requires the ordinary importer. Presence selects the route only; it is not evidence that any binding is valid or trusted.
(git_repo: &GitRepository)
| 187 | /// Binding transport requires the ordinary importer. Presence selects the |
| 188 | /// route only; it is not evidence that any binding is valid or trusted. |
| 189 | pub(super) fn has_binding_transport(git_repo: &GitRepository) -> CliResult<bool> { |
| 190 | git_repo |
| 191 | .references_glob("refs/atomic/bindings/*") |
| 192 | .map_err(|error| CliError::GitError { |
| 193 | message: error.to_string(), |
| 194 | })? |
| 195 | .next() |
| 196 | .transpose() |
| 197 | .map(|reference| reference.is_some()) |
| 198 | .map_err(|error| CliError::GitError { |
| 199 | message: error.to_string(), |
| 200 | }) |
| 201 | } |
| 202 | |
| 203 | const GIT_SHADOW_EXCLUDE_PATTERNS: &[&str] = &["/.atomic/", "/.vault/", "/.atomicignore"]; |
| 204 |
no test coverage detected