Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Feb 12, 2023
1 parent a3fa4f9 commit e13cf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ impl<'a, 'b, 'c> ContainerDataVolume<'a, 'b, 'c> {
.map(|s| bool_from_envvar(&s))
.unwrap_or(copy_registry);

self.create_dir(&reldst, mount_prefix, msg_info)?;
if copy_registry {
self.copy_files(&dirs.cargo().join("."), &reldst, mount_prefix, msg_info)?;
} else {
// can copy a limit subset of files: the rest is present.
self.create_dir(&reldst, mount_prefix, msg_info)?;
for entry in fs::read_dir(dirs.cargo())
.wrap_err_with(|| format!("when reading directory {:?}", dirs.cargo()))?
{
Expand Down

0 comments on commit e13cf8e

Please sign in to comment.