Merge pull request #413 from behnam/gitignore
[book] Prevent over-matching in gitignore rule
This commit is contained in:
commit
ebcf1e495d
|
@ -223,7 +223,7 @@ impl MDBook {
|
||||||
|
|
||||||
debug!("[*]: Writing to .gitignore");
|
debug!("[*]: Writing to .gitignore");
|
||||||
|
|
||||||
writeln!(f, "{}", relative).expect("Could not write to file.");
|
writeln!(f, "/{}", relative).expect("Could not write to file.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue