(root: &Path)
| 1791 | } |
| 1792 | |
| 1793 | pub(super) fn canonical_root(root: &Path) -> CliResult<PathBuf> { |
| 1794 | fs::canonicalize(root).map_err(|error| { |
| 1795 | git_error(format!( |
| 1796 | "cannot resolve repository root '{}': {error}", |
| 1797 | root.display() |
| 1798 | )) |
| 1799 | }) |
| 1800 | } |
| 1801 | |
| 1802 | pub(super) fn git_error(message: impl Into<String>) -> CliError { |
| 1803 | CliError::GitError { |
no test coverage detected