@@ -514,31 +514,31 @@ pub fn init(opts: &NewOptions, config: &Config) -> CargoResult<NewProjectKind> {
514
514
let mut version_control = opts. version_control ;
515
515
516
516
if version_control == None {
517
- let mut num_detected_vsces = 0 ;
517
+ let mut num_detected_vcses = 0 ;
518
518
519
519
if path. join ( ".git" ) . exists ( ) {
520
520
version_control = Some ( VersionControl :: Git ) ;
521
- num_detected_vsces += 1 ;
521
+ num_detected_vcses += 1 ;
522
522
}
523
523
524
524
if path. join ( ".hg" ) . exists ( ) {
525
525
version_control = Some ( VersionControl :: Hg ) ;
526
- num_detected_vsces += 1 ;
526
+ num_detected_vcses += 1 ;
527
527
}
528
528
529
529
if path. join ( ".pijul" ) . exists ( ) {
530
530
version_control = Some ( VersionControl :: Pijul ) ;
531
- num_detected_vsces += 1 ;
531
+ num_detected_vcses += 1 ;
532
532
}
533
533
534
534
if path. join ( ".fossil" ) . exists ( ) {
535
535
version_control = Some ( VersionControl :: Fossil ) ;
536
- num_detected_vsces += 1 ;
536
+ num_detected_vcses += 1 ;
537
537
}
538
538
539
539
// if none exists, maybe create git, like in `cargo new`
540
540
541
- if num_detected_vsces > 1 {
541
+ if num_detected_vcses > 1 {
542
542
anyhow:: bail!(
543
543
"more than one of .hg, .git, .pijul, .fossil configurations \
544
544
found and the ignore file can't be filled in as \
0 commit comments