Skip to content

Commit 8bfc145

Browse files
Evalirmikelodder7
authored andcommitted
fix(forge): properly clean git dir on path when installing thru template (foundry-rs#5817)
1 parent c22a34e commit 8bfc145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/forge/bin/cmd/init.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl InitArgs {
7171
}
7272
// Modify the git history.
7373
let commit_hash = git.commit_hash(true)?;
74-
std::fs::remove_dir_all(".git")?;
74+
std::fs::remove_dir_all(root.join(".git"))?;
7575

7676
git.init()?;
7777
git.add(Some("--all"))?;

0 commit comments

Comments
 (0)