Skip to content

Commit

Permalink
Ignore errors creating the git directory
Browse files Browse the repository at this point in the history
Probably can't fail, but just in case
  • Loading branch information
sourcefrog committed Apr 26, 2022
1 parent 8f04a65 commit 4bcfd9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ impl<'cfg> Source for RegistrySource<'cfg> {
// IO errors in creating and marking it are ignored, e.g. in case we're on a
// read-only filesystem.
let registry_base = self.config.registry_base_path();
let _ = registry_base.create_dir()?;
let _ = registry_base.create_dir();
exclude_from_backups_and_indexing(&registry_base.into_path_unlocked());

self.ops.block_until_ready()
Expand Down

0 comments on commit 4bcfd9e

Please sign in to comment.