| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Codespell / Check for spelling errors (pull_request) Successful in 58s
Conventional commits / check-messages (pull_request) Successful in 1m4s
Ruff / Code linting (pull_request) Successful in 1m9s
Type annotation (PR) / check (pull_request) Successful in 1m29s
Unit tests (Linux) / check (pull_request) Successful in 2m29s
Codespell / Check for spelling errors (push) Successful in 31s
Ruff / Code linting (push) Successful in 39s
Type annotation (project) / check (push) Successful in 1m38s
Unit tests (Linux) / check (push) Successful in 2m23s
This changeset brings three variants of a function to clone a repository. `clone_repo()` is a low-level helper, and a thin frontend to `git clone`. It main purpose is to orchestrate progress reporting via the `ProgressHandler` interface. `clone_repo_mirror()` is a similarly low-level variant, focused on wrapping `git clone --mirror`. it is implemented as a dedicated function, because the `--mirror` flag determines much of the parameter values of `clone_repo()`. A dedicated function appears cleaner than a sophisticated parameter combination validation. `clone_annexrepo()` is envisioned to be the standard workhorse. It wraps `clone_repo()` and supports the initialization of a local annex. The dependency on datasalad is bumped to 0.7, which introduced the ability to have `iter_subproc()` yield `stderr` -- which is used for reading and processing `git clone` progress reports. |
||
| .. | ||
| tests | ||
| __init__.py | ||