(root: &Path)
| 1822 | } |
| 1823 | |
| 1824 | pub(super) fn canonical_root(root: &Path) -> CliResult<PathBuf> { |
| 1825 | fs::canonicalize(root).map_err(|error| { |
| 1826 | git_error(format!( |
| 1827 | "cannot resolve repository root '{}': {error}", |
| 1828 | root.display() |
| 1829 | )) |
| 1830 | }) |
| 1831 | } |
| 1832 | |
| 1833 | pub(super) fn git_error(message: impl Into<String>) -> CliError { |
| 1834 | CliError::GitError { |
no test coverage detected