# HG changeset patch # User Simon Sapin <simon.sapin@octobus.net> # Date 1636149836 -3600 # Fri Nov 05 23:03:56 2021 +0100 # Node ID 374667afafefd45f13744339a1cb7d3739ca85c7 # Parent 0cb8d7449d28667db795a57e0da66bc703137130 Pack dataset at the root of the tar archives, not a subdirectory diff --git a/src/subcommands/new_dataset.rs b/src/subcommands/new_dataset.rs --- a/src/subcommands/new_dataset.rs +++ b/src/subcommands/new_dataset.rs @@ -115,7 +115,7 @@ zstd.multithread(num_cpus::get() as _)?; let mut tar = tar::Builder::new(zstd); tar.follow_symlinks(false); - tar.append_dir_all(base_name, &args.source_directory)?; + tar.append_dir_all("", &args.source_directory)?; // Peel the onion let zstd = tar.into_inner()?; let Tee(mut tmp_file, sha) = zstd.finish()?;