Skip to content

Cannot init at disk root on Windows #607

@CorentinJ

Description

@CorentinJ

Calling dvc init at the root of some disk (e.g. D:\) under Windows fails with error:
Unexpected error: Absolute path 'D:\\.dvc\\config' is not in git repository at 'D:\\'

Tested with Windows 10 x64.

Steps to reproduce:

  • Open cmd and move to the root of a disk (e.g. D:\)
  • Enter git init then dvc init

Metadata

Metadata

Assignees

Labels

bugDid we break something?

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions