diff --git a/src/origin/store.rs b/src/origin/store.rs index 756f1b6..23a4ee4 100644 --- a/src/origin/store.rs +++ b/src/origin/store.rs @@ -362,6 +362,9 @@ pub mod git { let descr_file_path = self.descr_file_path(descr_id.as_ref()); + // TODO it's possible that opening the file will fail if syncing is + // still ongoing, as writing the descr file is the last step after + // initial sync has succeeded. let descr_file = fs::File::open(descr_file_path) .map_err(|e| store::AllDescrsError::Unexpected(Box::from(e)))?;