Skip to content

Commit

Permalink
Run clean-tree after reverting.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirVer committed Sep 18, 2017
1 parent f7442d6 commit a12a09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bin/bunnybot.rs
Expand Up @@ -7,7 +7,6 @@ extern crate error_chain;
#[macro_use]
extern crate lazy_static;
extern crate regex;
extern crate reqwest;
#[cfg(target_os = "linux")]
extern crate scheduler;
#[macro_use]
Expand Down
2 changes: 2 additions & 0 deletions src/launchpad.rs
Expand Up @@ -163,6 +163,8 @@ impl Branch {
/// Revert the changes in the branch (if any).
fn revert(&self, bzr_repo: &Path) -> Result<()> {
run_command(&["bzr", "revert"], &bzr_repo.join(&self.slug), Verbose::Yes)?;
run_command(&["bzr", "clean-tree", "--unknown", "--detritus", "--force"],
&bzr_repo.join(&self.slug), Verbose::Yes)?;
Ok(())
}

Expand Down

0 comments on commit a12a09a

Please sign in to comment.