From db1c659491ef331d05a1952bb314f76f2124bde3 Mon Sep 17 00:00:00 2001 From: Andrew Rudoi Date: Tue, 15 Oct 2024 09:17:26 -0700 Subject: [PATCH] fix(friendshipper): allow stashing deleted files --- core/src/clients/git.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/src/clients/git.rs b/core/src/clients/git.rs index ac7ddb1..f0c765a 100644 --- a/core/src/clients/git.rs +++ b/core/src/clients/git.rs @@ -370,14 +370,6 @@ impl Git { ) -> anyhow::Result { self.wait_for_lock().await; - // if any deleted files are manually chosen, return an error - if paths.clone().into_iter().any(|p| { - let path = self.repo_path.join(p); - !path.exists() - }) { - bail!("Cannot manually snapshot deleted files"); - } - if paths.is_empty() { self.run(&["add", "--", "."], Opts::default()).await?; } else {