Skip to content

Commit

Permalink
Auto merge of #4099 - matklad:ignore-root-target, r=alexcrichton
Browse files Browse the repository at this point in the history
Ignore only root target directory

r? @alexcrichton
  • Loading branch information
bors committed May 25, 2017
2 parents 381a4e7 + 06267a7 commit b96038c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ fn mk(config: &Config, opts: &MkOptions) -> CargoResult<()> {
let path = opts.path;
let name = opts.name;
let cfg = global_config(config)?;
let ignore = ["target/\n", "**/*.rs.bk\n",
let ignore = ["/target/\n", "**/*.rs.bk\n",
if !opts.bin { "Cargo.lock\n" } else { "" }]
.concat();

Expand Down

0 comments on commit b96038c

Please sign in to comment.