Skip to content

Commit

Permalink
fix(friendshipper): allow stashing deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
rudoi committed Oct 15, 2024
1 parent e32dd26 commit db1c659
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/src/clients/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,6 @@ impl Git {
) -> anyhow::Result<Snapshot> {
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 {
Expand Down

0 comments on commit db1c659

Please sign in to comment.