Giter Club home page Giter Club logo

Comments (2)

mslw avatar mslw commented on September 3, 2024 1

Also seen in: #373

from datalad-next.

mih avatar mih commented on September 3, 2024

Exploring the issue, using the directory special remote as an example:

Cloning from a path that does not exist, wordy, but fails and tells why

❯ datalad clone 'datalad-annex::file:///tmp/invalidpath?type=directory&encryption=none&directory={path}' t1
install(error): /tmp/t1 (dataset) [Failed to clone from any candidate source URL. Encountered errors per each url were:
- datalad-annex::file:///tmp/invalidpath?type=directory&encryption=none&directory={path}
  CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false clone --progress 'datalad-annex::file:///tmp/invalidpath?type=directory&encryption=none&directory={path}' /tmp/t1' failed with exitcode 128 [err: 'Cloning into '/tmp/t1'...
fatal: CommandError(CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false annex initremote origin type=directory encryption=none directory=/tmp/invalidpath -c annex.dotfiles=true' failed with exitcode 1 under /tmp/t1/.git/dl-repoannex/origin/repoannex [out: 'initremote origin 
failed'] [err: 'git-annex: Directory does not exist: /tmp/invalidpath
initremote: 1 failed'])
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.']]

Cloning from an empty directory, succeeds, but should not.

❯ datalad clone 'datalad-annex::file:///tmp/validpath?type=directory&encryption=none&directory={path}' t1
[WARNING] You appear to have cloned an empty repository.                                     
[WARNING] Cloned /tmp/t1 but could not find a branch with commits                            
install(ok): /tmp/t1 (dataset)

So we are good already, whenever the special remote fails to work entirely. The issue seems limited to the handling of the remote refs detection.

from datalad-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.