diff --git a/crates/forge/bin/cmd/init.rs b/crates/forge/bin/cmd/init.rs index a1b2f2c78c210..5dcd596491ea5 100644 --- a/crates/forge/bin/cmd/init.rs +++ b/crates/forge/bin/cmd/init.rs @@ -71,7 +71,7 @@ impl InitArgs { } // Modify the git history. let commit_hash = git.commit_hash(true)?; - std::fs::remove_dir_all(".git")?; + std::fs::remove_dir_all(root.join(".git"))?; git.init()?; git.add(Some("--all"))?;