datalad-core/datalad_core/clone
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Hanke 3b8c69f046
feat: add implementation of git_url_basename()
This is the function that Git uses to "guess" a target directory name
for a clone.

ATM the code is still very C-like, given the attempt to produce a
faithful port. The tests should have full coverage. The exception
is a single line that belongs to a buffer-overrun protection that
shouldn't even be necessary in the C-code. I kept it for now.

The included test should allow for a gradual refactoring in the future.
2026-03-19 17:38:42 +01:00
..
tests feat: add implementation of git_url_basename() 2026-03-19 17:38:42 +01:00
__init__.py feat: add implementation of git_url_basename() 2026-03-19 17:38:42 +01:00
utils.py feat: add implementation of git_url_basename() 2026-03-19 17:38:42 +01:00