Skip to content

Commit 2fc2db1

Browse files
committed
Auto merge of #6792 - collin5:patch-1, r=alexcrichton
Fix Init for Fossil SCM project I believe [here](https://github.com/rust-lang/cargo/pull/6792/files#diff-149dd4362a3b0dc13b113762713119dfL527) we should be checking if `.fossil` doesn't exist instead of the latter!
2 parents 63231f4 + 02fbf66 commit 2fc2db1

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
@@ -524,7 +524,7 @@ fn init_vcs(path: &Path, vcs: VersionControl, config: &Config) -> CargoResult<()
524524
}
525525
}
526526
VersionControl::Fossil => {
527-
if path.join(".fossil").exists() {
527+
if !path.join(".fossil").exists() {
528528
FossilRepo::init(path, config.cwd())?;
529529
}
530530
}

0 commit comments

Comments
 (0)