(path: P)
| 698 | } |
| 699 | |
| 700 | pub fn open_existing<P: AsRef<Path>>(path: P) -> Result<Self, RepositoryError> { |
| 701 | Self::wait_for_database(DEFAULT_DATABASE_WAIT, || { |
| 702 | Self::open_existing_once(path.as_ref()) |
| 703 | }) |
| 704 | } |
| 705 | |
| 706 | fn open_existing_once(path: &Path) -> Result<Self, RepositoryError> { |
| 707 | if let Some((working_root, canonical, view)) = sandbox::detect_sandbox(path) { |