The local body's default destination: ` / - sandboxes/ `.
(repo_root: &std::path::Path, name: &str)
| 39 | /// The local body's default destination: `<repo-parent>/<repo-name>- |
| 40 | /// sandboxes/<name>`. |
| 41 | fn default_sandbox_dest(repo_root: &std::path::Path, name: &str) -> std::path::PathBuf { |
| 42 | let repo_name = repo_root |
| 43 | .file_name() |
| 44 | .map(|s| s.to_string_lossy().into_owned()) |
| 45 | .unwrap_or_else(|| "repo".to_string()); |
| 46 | let parent = repo_root.parent().unwrap_or(repo_root); |
| 47 | parent.join(format!("{repo_name}-sandboxes")).join(name) |
| 48 | } |
| 49 | |
| 50 | fn repository_ref(repository: &Option<RepositoryRef>) -> Result<RepositoryRef, Status> { |
| 51 | repository |
no test coverage detected