From db9b26e0e6cd0d7bc1b00cfda94ccb4b91cf7cd7 Mon Sep 17 00:00:00 2001 From: nardor Date: Sun, 17 Nov 2024 12:05:03 +0100 Subject: [PATCH 1/2] fix: typo --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index f0145098c..510b0ed1f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -146,7 +146,7 @@ pub struct GlobalOptions { #[merge(strategy=conflate::bool::overwrite_false)] pub dry_run: bool, - /// Check if index matches pack files and read pack headers if neccessary + /// Check if index matches pack files and read pack headers if necessary #[clap(long, global = true, env = "RUSTIC_CHECK_INDEX")] #[merge(strategy=conflate::bool::overwrite_false)] pub check_index: bool, From 65520205de08f861509ae746c1fd2e944c6cddde Mon Sep 17 00:00:00 2001 From: nardor Date: Sun, 17 Nov 2024 12:06:02 +0100 Subject: [PATCH 2/2] fix(webdav): early fail when used with async incompatible repo --- src/commands/webdav.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commands/webdav.rs b/src/commands/webdav.rs index 5dfdc4ccd..1b3a65f5d 100644 --- a/src/commands/webdav.rs +++ b/src/commands/webdav.rs @@ -81,6 +81,11 @@ impl WebDavCmd { fn inner_run(&self, repo: CliIndexedRepo) -> Result<()> { let config = RUSTIC_APP.config(); + // webdav only works with async compatible repo + if !repo.is_async_compatible() { + return Err(anyhow!("Webdav is currently incompatible with the backend you are using. See https://github.com/rustic-rs/rustic/issues/1181 for more details.")); + } + let path_template = config .webdav .path_template