Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datalad-annex:: Test for a repository deposit before establishing mirrorrepo #638

Merged
merged 4 commits into from
Feb 20, 2024

Commits on Feb 19, 2024

  1. Let DataLad's log level adjust the datalad-annex verbosity threshold

    Previously, one had to call `git-clone/fetch` directly with some
    `-v` options in order to trigger verbose output of the remote helper.
    
    With this change a DataLad log level of 'debug' (or more verbose),
    also triggers verbose output in the helper. This helps with
    accessibility of this feature for internal Git calls.
    
    Note that due to a limitation of the `datalad -l` CLI option handling
    the log-level is not propagated to subprocesses. This only works
    for env specification ala DATALAD_LOG_LEVEL=debug
    mih committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    1590c13 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85c3a60 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b8f5c5d View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Test for a repository deposit before establishing mirrorrepo

    The `mirrorrepo` property of the datalad-annex Git remote helper
    implementation creates an empty repository, if the remote has no
    refs (or does not exist). This is sensible behavior for enabling
    initial pushes.
    
    However, it leads to successful but empty clones/fetches for any
    misspecified URL or connectivity failure. This is undesirable.
    
    This change adds an explicit test for an available/accessible
    repository deposit, whenever a clone/fetch is performed. Wrong URL
    specifications or connectivity issues will now lead to an explicit
    error exit. This fact is communicated via a non-verbose message,
    and the full error is available at verbosity level 2, i.e. with a
    `git clone -v`.
    
    Closes: dataladgh-636
    mih committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    08e2213 View commit details
    Browse the repository at this point in the history