Skip to content

Commit b96038c

Browse files
committed
Auto merge of #4099 - matklad:ignore-root-target, r=alexcrichton
Ignore only root target directory r? @alexcrichton
2 parents 381a4e7 + 06267a7 commit b96038c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/cargo_new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ fn mk(config: &Config, opts: &MkOptions) -> CargoResult<()> {
384384
let path = opts.path;
385385
let name = opts.name;
386386
let cfg = global_config(config)?;
387-
let ignore = ["target/\n", "**/*.rs.bk\n",
387+
let ignore = ["/target/\n", "**/*.rs.bk\n",
388388
if !opts.bin { "Cargo.lock\n" } else { "" }]
389389
.concat();
390390

0 commit comments

Comments
 (0)