Skip to content

Commit

Permalink
add locking of config file
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome committed Sep 27, 2024
1 parent 5198030 commit 812f152
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/core/src/commands/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ use crate::{
GlobalIndex, ReadGlobalIndex,
},
progress::{Progress, ProgressBars},
repofile::{IndexFile, IndexId, KeyId, PackId, RepoId, SnapshotFile, SnapshotId},
repofile::{
configfile::ConfigId, IndexFile, IndexId, KeyId, PackId, RepoId, SnapshotFile, SnapshotId,
},
repository::{Open, Repository},
BlobId, TreeId,
};
Expand Down Expand Up @@ -168,6 +170,7 @@ pub fn lock_repo<P: ProgressBars, S>(
repo: &Repository<P, S>,
until: Option<DateTime<Local>>,
) -> RusticResult<()> {
lock_all_files::<P, S, ConfigId>(repo, until)?;
lock_all_files::<P, S, KeyId>(repo, until)?;
lock_all_files::<P, S, SnapshotId>(repo, until)?;
lock_all_files::<P, S, IndexId>(repo, until)?;
Expand Down

0 comments on commit 812f152

Please sign in to comment.