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

annexrepo: Set annex.retry=3 when calling git-annex #4382

Merged
merged 2 commits into from Apr 13, 2020

Commits on Apr 7, 2020

  1. RF: annexrepo: Store repeated .config access as variable

    In AnnexRepo.__init__(), we access .config twice for read-only
    inspection and will access it once more in the next commit, so store
    it as a local variable.
    kyleam committed Apr 7, 2020
    Copy the full SHA
    43780ca View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2020

  1. ENH: annexrepo: Set annex.retry=3 when calling git-annex

    git-annex has an annex.retry option that instructs it to retry on
    transfer failure, but it defaults to 0.  Add a datalad.annex.retry
    option that defaults to 3 and is used as the value for annex.retry in
    our calls to git-annex, taking care to not override annex.retry if the
    user has configured it.
    
    This implements @yarikoptic's proposal from dataladgh-2896 and will hopefully
    help resolve some flaky test failures (e.g., dataladgh-3653 and dataladgh-4371).
    
    Closes datalad#2896.
    kyleam committed Apr 8, 2020
    Copy the full SHA
    906fce4 View commit details
    Browse the repository at this point in the history