datalad_next.repo_utils.has_initialized_annex
- datalad_next.repo_utils.has_initialized_annex(path: Path) bool[source]
Return whether there is an initialized annex for
pathThe given
pathcan be any directory, inside or outside a Git repository.Trueis returned when the path is found to be within a (locally) initialized git-annex repository.When this test returns
Trueit can be expected that no subsequent call to an annex command fails withgit-annex: First run: git-annex init
for this
path.