Skip to content

Commit 3ca6a20

Browse files
committed
Auto merge of #4158 - stepancheg:hg-ignore, r=alexcrichton
Generate .hgignore with syntax:glob Fixes #4005
2 parents 45148e0 + 1ec8936 commit 3ca6a20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo/ops/cargo_new.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ fn mk(config: &Config, opts: &MkOptions) -> CargoResult<()> {
410410
if !fs::metadata(&path.join(".hg")).is_ok() {
411411
HgRepo::init(path, config.cwd())?;
412412
}
413+
let ignore = format!("syntax: glob\n{}", ignore);
413414
paths::append(&path.join(".hgignore"), ignore.as_bytes())?;
414415
},
415416
VersionControl::Pijul => {

0 commit comments

Comments
 (0)