We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453ae9f commit 087bc40Copy full SHA for 087bc40
src/cargo/ops/cargo_new.rs
@@ -64,10 +64,10 @@ fn existing_vcs_repo(path: &Path) -> bool {
64
fn mk(config: &Config, path: &Path, name: &str,
65
opts: &NewOptions) -> CargoResult<()> {
66
let cfg = try!(global_config(config));
67
- let mut ignore = "/target\n".to_string();
+ let mut ignore = "target\n".to_string();
68
let in_existing_vcs_repo = existing_vcs_repo(&path.dir_path());
69
if !opts.bin {
70
- ignore.push_str("/Cargo.lock\n");
+ ignore.push_str("Cargo.lock\n");
71
}
72
73
let vcs = match (opts.version_control, cfg.version_control, in_existing_vcs_repo) {
0 commit comments