mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
d60b748e3c
* Fix surprises when asking for the root of a git repo In the case of the first asset I wanted to get from git, the data I wanted was the entire repository. I tried leaving "path" blank, which gave a less-than-helpful error, and then I tried `path: "/"`, which started copying my entire filesystem into the project. The path I should have used was "". I've made two changes to make this smoother for others: - The 'path' within a git clone defaults to "" - If the path points outside of the tmpdir that the git clone goes into, we fail with an error Signed-off-by: Elia Robyn Speer <elia@explosion.ai> * use a descriptive error instead of a default plus some minor fixes from PR review Signed-off-by: Elia Robyn Speer <elia@explosion.ai> * check for None values in assets Signed-off-by: Elia Robyn Speer <elia@explosion.ai> Co-authored-by: Elia Robyn Speer <elia@explosion.ai> |
||
---|---|---|
.. | ||
__init__.py | ||
assets.py | ||
clone.py | ||
document.py | ||
dvc.py | ||
pull.py | ||
push.py | ||
remote_storage.py | ||
run.py |