Skip to content

Commit ebcf1e4

Browse files
authored
Merge pull request #413 from behnam/gitignore
[book] Prevent over-matching in gitignore rule
2 parents 313f9b9 + 40a4840 commit ebcf1e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/book/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl MDBook {
223223

224224
debug!("[*]: Writing to .gitignore");
225225

226-
writeln!(f, "{}", relative).expect("Could not write to file.");
226+
writeln!(f, "/{}", relative).expect("Could not write to file.");
227227
}
228228
}
229229

0 commit comments

Comments
 (0)