Comments (2)
Also seen in: #373
from datalad-next.
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)
- Failing powershell tests HOT 1
- Transition of SSH-related implementations
- Add `close()` to `URLOperations`
- Docs on getting annex info in Python
- `ls-file-collection annexworktree`: iterable did not yield matching item for route-in item
- Crippled test runs need more space
- Investigate default wanted expression
- Handle global option `-c` properly HOT 2
- `next-status` claims nothing to save when all is staged and no HEAD
- External protocol specifications with `shell` based "driver" implementation
- A `sibling` command to rule them all HOT 3
- External protocol for secret store adaptors
- Warning: `cannot collect test class 'TestArchive' because it has a __init__`
- Revamp `save` with improved messages
- `pytest` now unintentional runtime dependency HOT 1
- Add note that `rev-parse --path-format=relative` requires Git > 2.30
- [WARNING] Could not load extension 'next': ImportError(cannot import name 'Dataset' from partially initialized module 'datalad.api' HOT 1
- Failing testing of datalad "core" HOT 2
- 1.4 introduced build reproducibility issue
- Remove manual subpackage doc listing -> `__all__`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datalad-next.