Skip to content

Commit

Permalink
Auto merge of #6792 - collin5:patch-1, r=alexcrichton
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
bors committed Mar 29, 2019
2 parents 63231f4 + 02fbf66 commit 2fc2db1
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 @@ -524,7 +524,7 @@ fn init_vcs(path: &Path, vcs: VersionControl, config: &Config) -> CargoResult<()
}
}
VersionControl::Fossil => {
if path.join(".fossil").exists() {
if !path.join(".fossil").exists() {
FossilRepo::init(path, config.cwd())?;
}
}
Expand Down

0 comments on commit 2fc2db1

Please sign in to comment.